how to select a field with firstletter as capital and
remaining are small letters
Answer Posted / santosh kumar chhotaray
SELECT UPPER(SUBSTRING(<FieldName>,1,1))+LOWER(SUBSTRING(Name,2,LEN(<FieldName>))) AS
alliasename FROM tablename
Example
--------
SELECT UPPER(SUBSTRING(Name,1,1))+LOWER(SUBSTRING(Name,2,LEN(Name))) AS
name FROM tblInfo
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain the truncate command? : SQL Server Architecture
What is built-in function?
What do you understand by a view? What does the with check option clause for a view do?
What is the difference between a view and a stored procedure?
What is blocking?
what are the different ways to return the rowcount of a table?
How to use "if ... Else if ... Else ..." Statement structures in ms sql server?
What are the diifferences between the ms sql server vs mysql?
What is constraints and its types?
What are triggers in ms sql server?
What are the indexes in sql server?
What is default constraint in ms sql server?
What is the return type of executeupdate ()?
How to add more data to the testing table in ms sql server?
What are data resources?