Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
sponguru_dba
Yak Posting Veteran
93 Posts |
Posted - 2006-10-23 : 03:05:48
|
Hiall Iam have query with "INTEREST"operator this is Oracle specifcInsted of intersect i want other alternative which is ahaving eligibility to work both oracle and Sql Servercan some help me on this issueThanks in AdvanceSreenivasaRaoSreenivasaRaoBangalore,INDIA |
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
spirit1
Cybernetic Yak Master
11752 Posts |
Posted - 2006-10-23 : 03:52:48
|
if you're running SQL server 2005 you can use INTERSECT operator.It also has except operator.Go with the flow & have fun! Else fight the flow blog thingie: http://weblogs.sqlteam.com/mladenp |
 |
|
sponguru_dba
Yak Posting Veteran
93 Posts |
Posted - 2006-10-23 : 06:32:37
|
hi allIam getting "Server: Msg 156, Level 15, State 1, Line 9Incorrect syntax near the keyword 'WHERE'."if i run this select a,b,c,d,e from A w,B x,C y,D z WHERE x.one=y.one and ....where existsselect a,b,c,d,e from A k,B l,C m,D n WHERE k.one=l.one and .... order by dthanks in AdvanceSreenivasSreenivasaRaoBangalore,INDIA |
 |
|
SwePeso
Patron Saint of Lost Yaks
30421 Posts |
Posted - 2006-10-23 : 06:39:26
|
Read about the use of EXISTS keyword in BOOKS ONLINE.Peter LarssonHelsingborg, Sweden |
 |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2006-10-23 : 06:41:19
|
General SyntaxSelect columns from table T where exists(select * from othertable where keycol=T.keycol)MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|
|