how to select a field with firstletter as capital and
remaining are small letters

Answer Posted / dharmendra k dixit

Select Left(Upper((YourColumnName), 1) + Substring(Lower
(YourColumnName),2,Len(YourColumnName))AS UName
From YourTableName

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to grant a permission in ms sql server using "grant execute" statements?

785


What is the new security features added in sql server 2016? : sql server security

814


How will you make an attribute not process? : sql server analysis services, ssas

775


Explain can you implement data mining in ssrs?

122


What does select 1 mean?

738


How fixed length strings are truncated and padded?

740


How can you find out if the current user is a member of the specified microsoft® windows nt® group or microsoft sql server™ role?

803


Tell me can we use custom code in ssrs?

765


Explain the difference between cross join and full outer join?

685


Write the SQL query to drop, truncate and delete table.

744


What is a periodical index?

663


What are key, name and value columns of an attribute? : sql server analysis services, ssas

779


How do you create an execution plan?

679


What are the system database in sql server 2005?

757


Explain index in sql server?

769