Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Query

Status
Not open for further replies.

stuck

MIS
Jan 16, 2002
9
0
0
US
How do i write this query

List all columns in Dept where that have no courses.
(Dept and Course are tables and the join on dept.ddept = course.cdept)??????????help
 
SELECT Dept.* FROM Dept LEFT OUTER JOIN course ON dept.ddept = course.cdept WHERE course.cdept IS NULL;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top