Skip to content

Commit d7ef8ee

Browse files
authored
Update sum-two-nullable-cols-using-sum-function-as-window-function.sql
1 parent 2afc1c9 commit d7ef8ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql-queries-8/sum-two-columns-sql-query/sum-two-nullable-cols-using-sum-function-as-window-function.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SELECT publisher_id,
1+
SELECT publisher_id,magazine_name,
22
COALESCE(q1sales,0)+COALESCE(q2sales,0) AS magazine_sales,
33
SUM(COALESCE(q1sales,0)+COALESCE(q2sales,0))
44
OVER(PARTITION BY publisher_id) AS publisher_sales,

0 commit comments

Comments
 (0)