d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Basic Sql
Add Reply New Topic New Poll
Member
Posts: 18,191
Joined: May 31 2010
Gold: 149.27
Dec 6 2015 08:40pm
How can I write a basic SQL query to accomplish the question (3) in the picture? Would I have to use a sub query?



This post was edited by Trig on Dec 6 2015 08:40pm
Member
Posts: 32,925
Joined: Jul 23 2006
Gold: 3,804.50
Dec 6 2015 09:19pm
i would use a subquery, but you can do a join as well.

where 1=1
and courseid = '3113'
and facultyid not in (
select facultyid from qualified where courseid = '4930'
)
Go Back To Programming & Development Topic List
Add Reply New Topic New Poll