SELECT productline, count(*) FROM products GROUP BY productline;
SELECT productvendor, count(*) FROM products GROUP BY productvendor;
SELECT productvendor, count(*) FROM products GROUP BY productvendor HAVING count(*) >= 9;
SELECT COUNT(IF(status='Cancelled',1, NULL)) 'Cancelled', COUNT(IF(status='On Hold',1, NULL)) 'On Hold', COUNT(IF(status='Disputed',1, NULL)) 'Disputed' FROM orders;