If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > What is SYBASE equivalent of ORACLE "minus" function?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-03, 14:51
Wale Wale is offline
Registered User
 
Join Date: Mar 2002
Posts: 162
What is SYBASE equivalent of ORACLE "minus" function?

I am trying to figure out if SYBASE has an equivalent of ORACLE's "minus" function. The function returns the difference in data b/w 2 identical table columns etc. It is good for inserting the differences in data b/w 2 tables to make the tables the same in terms of data

Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-27-03, 15:09
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,540
i checked the online sybase docs for EXCEPT, which, i believe, is the sql standard operator, but couldn't find anything on it

so let's do it the old fashioned way (the way we had to accomplish the same results before the new-fangled join operators)

select whatever
from table1 T1
where not exists
( select 1
from table2
where id = T1.id )


rudy
Reply With Quote
  #3 (permalink)  
Old 02-27-03, 15:12
Wale Wale is offline
Registered User
 
Join Date: Mar 2002
Posts: 162
too bad , Thanks anyways Rudy.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On