8000 add 1777 · githubniraj/Leetcode@4f9ee81 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4f9ee81

Browse files
add 1777
1 parent 67e048b commit 4f9ee81

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

database/_1777.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)
0