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

Answer Posted / priya

SELECT * UPPER(SUBSTRING(<COLUMNNAME>,1,1))
+LOWER(SUBSTRING(<COLUMNNAME>,2,LEN(<COLUMNNAME>))) AS
<SOMENAME> FROM <TABLENAME>

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the joins in sql server? : sql server database administration

535


Can a table have 2 primary keys?

503


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

576


Explain optimistic and pessimistic concurrency?

533


Explain “not null constraint” in sql server?

518






What are the restrictions that views have to follow?

553


what are different types of raid configurations? : Sql server database administration

482


Which joins are sql server default?

500


How would you go about developing a ssrs report?

110


Show Practically Sql Server Views are updatable?

584


Mention what are the core components of ssrs?

206


Suggest a method of joining two tables.

594


tell me the disaster recovery plan

2017


What is self contained multi valued query?

549


Can you explain full-text query in sql server?

543