1795. Rearrange Products Table
IntuitionApproachComplexity
Time complexity:

Space complexity:
Code
# Intuition
<!-- Describe your first thoughts on how to solve this problem. -->

# Approach
<!-- Describe your approach to solving the problem. -->

# Complexity
- Time complexity:
<!-- Add your time complexity here, e.g. $$O(n)$$ -->

- Space complexity:
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```oraclesql []
/* Write your PL/SQL query statement below */
select product_id, 'store1' as store, store1 as price
from Products
where store1 is not null

union

select product_id, 'store2' as store, store2 as price
from Products
where store2 is not null

union

select product_id, 'store3' as store, store3 as price
from Products
where store3 is not null
```
['Oracle']