This seems to be the hardest thing to search for - I can find a lot of "how do I find empties in two tables", or how to do so for non-sqlite, but...
- Three tables, item (id, name), user (id, name) and item_user (item_id, user_id) - the last table connects the first two
- Three users, Bob, Jane, Danny
- Two items, hammer, nail
How do I find the users who haven't made an order for an item?
So, if...
- bob has ordered a hammer and a nail
- so has Jane
- Danny has only ordered a hammer
...then I want to return one row:
user.name item.name
--------- ---------
Danny nail
Can I do a search to show this? In sqlite?