The easiest solution
Runtime: 470 ms, faster than 78.93% of MySQL online submissions for Rearrange Products Table.\nMemory Usage: 0B, less than 100.00% of MySQL online submissions f
Runtime: 470 ms, faster than 78.93% of MySQL online submissions for Rearrange Products Table.\nMemory Usage: 0B, less than 100.00% of MySQL online submissions for Rearrange Products Table.\n\n```\nselect product_id, \'store1\' as store, store1 as price from Products where store1 is not null\nunion\nselect product_id, \'store2\' as store, store2 as price from Products where store2 is not null\nunion\nselect product_id, \'store3\' as store, store3 as price from Products where store3 is not null;\n```
['Union Find', 'MySQL']