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
What are the new features in SQL Server 2005 when compared to SQL Server 2000?
Can you explain what are commit and rollback in sql?
Does view occupy space?
Can you explain what is sql server english query?
What happens when unicode strings concatenate with non-unicode strings?
What is pessimistic concurrency?
Are semicolons required at the end of sql statements in sql server 2005?
Explain different types of collation sensitivity?
What is instead of dml trigger?
What is mssql?
Explain how to use linked server?
Can you move the resources after pausing the node? : sql server database administration
Explain about extended stored procedure?
Where are full-text indexes stored?
What is view in sql?