SELECT
ship_country,
SUM(CASE
WHEN status = 'shipped' OR status = 'delivered' THEN 1
ELSE 0
END) AS order_shipped
FROM orders
GROUP BY ship_country;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter