1
2
3
4
5
6
7
8
9
|
/* Write your PL/SQL query statement below */
select * from(
select product_id, 'store1' store, store1 price from products
union
select product_id, 'store2' store, store2 price from products
union
select product_id, 'store3' store, store3 price from products
)
where price is not null;
|
cs |
반응형
'SQL' 카테고리의 다른 글
leetcode 1484. Group Sold Products By The Date (0) | 2022.03.30 |
---|---|
leetcode 1581. Customer Who Visited but Did Not Make Any Transactions (0) | 2022.03.30 |
leetcode 1587. Bank Account Summary II (0) | 2022.03.30 |
leetcode 1873. Calculate Special Bonus (0) | 2022.03.29 |
leetcode 1693. Daily Leads and Partners (0) | 2022.03.29 |
댓글