I have been tasked with returning a negative selection from our sql database. I'll define the criteria as best i can. Thus far I haven't crafted a query that has worked.
Business Table
[Bus Name] [Bus ID]
Activity Table
[Activity ID] [Bus ID]
Activity Extension Table
[Ext ID] [Activity ID] [Bus ID]
I need the Business names for all businesses that do not have a record with that businesses id # in the associated tables. Simply put, all businesses without activities. The Business ID can be present in one or both of the associated tables.
This has caused me trouble for a few hours while trying to craft queries with joins and not exists or not in statements. No success.
Any ideas?
Thanks D