Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Help me with this query
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

151 Posts

Posted - 05/03/2013 :  03:29:47  Show Profile  Reply with Quote
What is wrong with this query ?

select ID from customer WHERE (Family+' '+Name)= 'smith john'

it shows empty column while the opposit query works properly!

SELECT (Family+' '+Name) FROM Customer where ID=8

it shows "Smith John" as answer

Flowing Fount of Yak Knowledge

8781 Posts

Posted - 05/03/2013 :  03:33:02  Show Profile  Visit webfred's Homepage  Reply with Quote
case sensitiv?

Too old to Rock'n'Roll too young to die.
Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 05/03/2013 :  04:17:49  Show Profile  Reply with Quote
check the collation and confirm whether its case sensitive or not as Fred suggested

SQL Server MVP
Go to Top of Page

Posting Yak Master

151 Posts

Posted - 05/03/2013 :  05:12:51  Show Profile  Reply with Quote
No it is not case sensitive
Go to Top of Page

Posting Yak Master

151 Posts

Posted - 05/03/2013 :  05:16:59  Show Profile  Reply with Quote
Thanks for your answering , i got the problem . It has problem with my language because i use non english language for names
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000