Get all entries from one table together with the count of these entries in another table.
- by Emanuil
I've got 3 tables:
users (id, name, ...)
items (id, name, ...)
downloads (user_id, item_id, ...)
How do I get all users together with the number of downloads they have?