maikon Oxxx|:::::::::::> Local time Today, 03:53 Joined Jan 13, 2005 Messages 22 Mar 3, 2005 #1 Hi people, Do exists a way to a query return what doesn't into other query? For example: SELECT * FROM table WHERE "NOT INTO" (SELECT * FROM table WHERE ... ) Someone understood?! Thanks a lot!
Hi people, Do exists a way to a query return what doesn't into other query? For example: SELECT * FROM table WHERE "NOT INTO" (SELECT * FROM table WHERE ... ) Someone understood?! Thanks a lot!
FoFa Registered User. Local time Today, 01:53 Joined Jan 29, 2003 Messages 3,672 Mar 3, 2005 #2 Where MyCol NOT IN (select OtherCol from MyTable) But Access is not the best performing with this just so you know.
Where MyCol NOT IN (select OtherCol from MyTable) But Access is not the best performing with this just so you know.
P Pat Hartman Super Moderator Staff member Local time Today, 02:53 Joined Feb 19, 2002 Messages 46,908 Mar 3, 2005 #3 Use the query builder wizard to create an "unmatched" query. It generates a left join and select rows where the key field in tblB is null which is usually more efficient than the subquery.
Use the query builder wizard to create an "unmatched" query. It generates a left join and select rows where the key field in tblB is null which is usually more efficient than the subquery.