☰
d2jsp
Rules
Help
Forum Gold FAQ
Live Streams
Photo Gallery
Hourly Raffle
Ladder Slasher
Log In
Register
Log In
Register
Account Recovery
Resend Validation Email
d2jsp Forums
>
Off-Topic
>
Computers & IT
>
Programming & Development
> Basic Sql
Add Reply
New Topic
New Poll
Views: 255
Replies: 1
Track Topic
TRiG
Member
Posts: 18,191
Joined: May 31 2010
Gold
:
149.27
#1
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
carteblanche
Member
Posts: 32,925
Joined: Jul 23 2006
Gold
:
3,804.50
#2
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
© 2003-2026 d2jsp
Contact