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.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Left Outer Join Question

Author  Topic 

denis_the_thief
Aged Yak Warrior

596 Posts

Posted - 2009-06-10 : 16:13:48
I am getting rid of '*=' and '=*' for Compatibility 9.0 mode.

I came across this query:

select 
(select C2.Col2 from Claim C2 where C2.ID *= C.ID) x,
C.*
from
Claim C


I've never seen this before. Anyone know what I should translate it to. I am thinking of:

select 
(select C2.Col2 from Claim C2 where C2.ID = C.ID) x,
C.*
from
Claim C


Thank you.

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2009-06-10 : 16:21:36
Not sure but if you have the chance to compare old and new output...
select
C2.Col2 as x,
C.*
from Claim C
left join Claim C2
on C2.ID = C.ID


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -