We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67e048b commit 4f9ee81Copy full SHA for 4f9ee81
database/_1777.sql
@@ -0,0 +1,10 @@
1
+-- # Write your MySQL query statement below
2
+select
3
+ product_id,
4
+ max(case when store = 'store1' then price end) as store1,
5
+ max(case when store = 'store2' then price end) as store2,
6
+ max(case when store = 'store3' then price end) as store3
7
+from
8
+ Products
9
+group by
10
+ product_id
0 commit comments