I have two tables, table1 and table2
table1 has the following columns:
ID | OrderNo | Order_Date
---|---------|-----------
1 | O1 | 22/1/2020
2 | O2 | 23/1/2020
table2 has the following columns:
FID | OrderNo | ItemName
----|---------|---------
1 | O1 | TV
2 | O1 | Radio
3 | O1 | Tape
4 | O2 | NoteBook
5 | O2 | Pencil
What sql query would allow me to select:
OrderNo | ItemName
--------|---------
O1 | TV, Radio, Tape
O2 | NoteBook, Pencil