I want to get group records of my mysql table. Here is database screenshot
I used this query
SELECT url, count(url) AS total_orders
FROM orders
GROUP BY url
ORDER BY COUNT(url) DESC;
I got this result
But I also want to get store wise finance column data that have pending value.
Like
cmsapi.myshopify.com have 1 pending order in finance
b09a2a-2.myshopify.com have 1 pending order in finance
Actually I want to get result as below screenshot
How to get this all result in one mysql query ?
Regards