|
-
Sep 2nd, 1999, 12:33 PM
#1
Thread Starter
Member
Hi Guys,
Another question abt SQL, I got two tables and I wanted to find out who is in Q table and not in W table? So I used these code:
Select Name From q Minus Select Vendor From w
Error: Syntax error in From?
Please do correct me if my code is wrong.
Thks.
-
Sep 2nd, 1999, 06:50 PM
#2
Try this:
Select Name From Q Left Join W On Q.SomeID = W.SomeID Where W.Name Is Null
SomeID is a field that is common in both tables.
Regards,
------------------
Serge
Software Developer
[email protected]
[email protected]
-
Sep 3rd, 1999, 12:41 PM
#3
Junior Member
or you can use alternatively code as follows:
select Q.Name from Q where Q.Name Not in (select W.Name from W)
Jan
[This message has been edited by Jamppa (edited 09-04-1999).]
-
Sep 5th, 1999, 12:14 PM
#4
Thread Starter
Member
Thanks for all your help. Thks all of you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|