![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
HI, i got a problem while using StrConv function in sql server. My requirement is:- suppose in a name field i have "jhon smith" Now i want to run a sql which will give me the result like "Jhon Smith"--which means upper case first. Now i am running a query like below which is giving me "Jhon smith" but i want "Jhon Smith". SELECT [CustomerID] ,upper(left(firstname,1)) + lower(right(firstname, len(firstname)-1)) AS [FirstName_] from my_table; But the above query is not giving me the right result. Please suggest... Thanks Hoque |
![]() |
| Thread Tools | |
| Display Modes | |
| |