So I am doing a homework assignment where we need to write SQL queries using the "plain english" explanations given. There is one problem that I just cant make sense of what it is asking.
Display all the columns in Title for those that dont have any rows in Employee.
Title contains the columns code, name, min_salary, max_salary
Employee contains id, dcode, tcode, ssn, last_name, first_name, middle_init, hire, salary
I am pretty sure Title.code and Employee.tcode are the 2 being used.
My attempt at this (even though I dont know what the output is even supposed to be) is...
SELECT DISTINCT Title.*
FROM Title, Employee
WHERE Title.code<>Employee.tcode;