medium10 pts · first answer countssqlnull-handling
SUM over zero matching rows
No orders exist for the region 'Fujairah'. What does this query return, and how do you make it show 0?
SELECT SUM(amount) FROM orders WHERE region = 'Fujairah';
No orders exist for the region 'Fujairah'. What does this query return, and how do you make it show 0?
SELECT SUM(amount) FROM orders WHERE region = 'Fujairah';