I’ve got three tables, two are “data” tables, one is a join (or lookup) table.
Place Table
- PlaceId
- Name
- etc…
Categories Table
- CatId
- Name
- etc…
PlaceCats Table
- PlaceId
- CatId
(with appropriate relationships defined between each Id field)
What I want to do is pull the categories that contain less than 5 Places… for some reason I just can wrap my mind around the T-SQL to make that happen.
1 Answer