|
-
Another approach would be using minus
select col1 alias1, col2 alias2
from table1
where something = nothing
minus
select col3 alias1, col2 alias2
form table2
where something = everything
This may be faster in certain cases because you are not doing a lookup in second table for every record in the first table especially when your where clause may have unindexed criteria only.
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
|