Say I have table1 which contains a field called Name and a field called ItemID which is a foreign key to table2.
What I want is a query that contains each Name, and how many entries in table2 have the same ItemID as that entry.
How would I go about doing this?
but my sql-fu may be rusty 😛
Note that this will give no rows for Names where table2 contains no matching rows, so itemCould will always be >0