I want to filter or reduce my query results further based on only those records that have a count > some number.
How can I use a subquery to do this?
I have a ID column in table A and a table B that has Cat column and ID column that references table A ID column value. There are many records in table B for each ID in table A.
I want to SELECT all table A IDs that have a table B Cat value of 101 AND has a count of table B ID values > 2 (i.e. there is more than two records in table B for the table A ID, one of which is Cat 101.)
Hope this makes sense. Your help would be greatly appreciated.
How can I use a subquery to do this?
I have a ID column in table A and a table B that has Cat column and ID column that references table A ID column value. There are many records in table B for each ID in table A.
I want to SELECT all table A IDs that have a table B Cat value of 101 AND has a count of table B ID values > 2 (i.e. there is more than two records in table B for the table A ID, one of which is Cat 101.)
Hope this makes sense. Your help would be greatly appreciated.