Skip to content
RED SAG Skills
mediumStudy question · answer published in SQL interview questions, so no pointssqlnull-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';
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions