I know there are similar questions, but I can't find solution to what I need to do.
First of all I have 2 tables :
- SD.Airlines (16k+ rows)
- SD.AirlineRatings (405 rows)
I need to find which records form SD.AirlineRatings do I have in SD.Airlines, I did this :
SELECT b.Name AS Airline FROM SD.Airlines b
LEFT JOIN SD.AirlineRatings a ON a.AirlineName = b.Name
WHERE a.AirlineName IS NOT NULL;
Works fine, showed me 249/405 records. Now... If I need to compare those 249 records towards SD.AirlineRatings and check which ones I don't have.
I bet answer is simple but I don't know SQL that much.
Thanks