Sample table
| Invoice Number | Invoice Date | Item Name |
|---|---|---|
| 1001 | 12 Jul 21 | Foo |
| 1002 | 10 Jun 21 | Baz |
| 1001 | 12 Jul 21 | Bar |
| 1002 | 10 Jun 21 | Spam |
| 1001 | 12 Jul 21 | Eggs |
How can I write a sqlalchemy ORM query to fetch these data in the below format:
| Invoice Number | Invoice Date | Items |
|---|---|---|
| 1001 | 12 Jul 21 | Foo,Bar, Eggs |
| 1002 | 10 Jun 21 | Baz, Spam |
I am connecting to a sql server database in the backend.