January 23, 2006 at 6:54 am
Hi
Can some one tell me alternate of Oracle Minus command in SQL server.
i.e.
(select ColA from Tbl_A)
Minus
(select ColA from Tbl_B)
Wishes
Jawad
January 23, 2006 at 7:56 am
Use the NOT EXISTS clause.
January 23, 2006 at 5:00 pm
Yes, that is usually my choice as well, and the other alternative is a left join filtering the nulls. Test which one works best for your situation. Of course SQL Server 2005 does have the EXCEPT operator which is equivalent to Minus.
Check this old topic for more of this discussion.
January 24, 2006 at 4:38 am
Thanks
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply