I’d like to get all tags that match a given id where:
select tag where id = 101 //returns 4 rows
soup
nuts
juice
milk
Only now, i’d like to use that as a subquery –
select idList, (select tag where id = 101) itemsOnList, shopper from assignedLists
becomes:
10 | soup,nuts,juice,milk | Mom
This is actually a pretty tricky thing to do believe or not.
The best reference I have seen for doing this is here. The following query was taken from an example in that article. There are more options.