I have a set of tables and I don't really know how to display some specific information using them. The tables have the following structure:
profs
profs_id | name 
teaching
profs_id | course_id
courses
course_id | course_title
I am trying to display all profs who don't have an assigned course yet. I wrote the following query, but it doesn't work properly:
SELECT p.name 
  FROM profs p 
  JOIN teaching t 
    ON p.id_profs <> t.id_profs;
How can I fix that?
 
     
     
     
    