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

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

Exir
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

webfred
Flowing Fount of Yak Knowledge

Germany
8683 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

visakh16
Very Important crosS Applying yaK Herder

India
52249 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
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

Exir
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

Exir
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  
 New 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.06 seconds. Powered By: Snitz Forums 2000