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
 General SQL Server Forums
 New to SQL Server Programming
 UPPER

Author  Topic 

peace
Constraint Violating Yak Guru

420 Posts

Posted - 2014-06-30 : 00:50:57
select .... from tableB B

LEFT JOIN tableA A ON A.Id = B.Id
AND ((UPPER(A.FirstName) + ' ' + UPPER(A.LastName) = UPPER(@Name))
OR (UPPER(A.LastName) + ' ' + UPPER(A.FirstName) = UPPER(@Name)))

I dont really understand the UPPER in left join..anyone can help?

Thanks

mmkrishna1919
Yak Posting Veteran

95 Posts

Posted - 2014-06-30 : 04:44:37
it is Case insensitive, i think there is no significance to UPPER clause in above join conditions.

M.MURALI kRISHNA
Go to Top of Page
   

- Advertisement -