I know SQL pretty well for joins and queries, but when it comes to this I have no idea. Can someone take a crack at this, please?
How would you create the data in table1 given the data in table2? Write an SQL query.
Table1 (csv):
order_id1, prod_id1
order_id1, prod_id2
order_id1, prod_id3
order_id1, prod_id4
order_id1, prod_id4
Table2 (csv):
order_id1, prod_id1, prod_id2, prod_id3, prod_id4, prod_id4