I need to select all values that are currently not in another table. This is so confusing to me that I can't even really think of how to explain it. Here is an example...select * from Store join Organization on store.organizationID = Organization.organizationID left join StoreExport on store.storeID = StoreExport.storeIDwhere Organization.organizationID = 1 and StoreExport.storeID <> Store.storeID
Example data: Store StoreExportstoreID 1 storeID 3storeID 2 storeID 4storeID 3 storeID 5storeID 4 storeID 5
I'm looking for my query to only return records who have a storeID of 1 and 2 since 3,4, and 5 are all in StoreExport.Does this make sense? Sorry it's so confusing...