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

Answer Posted / vidit tyagi

SELECT Left(upper(<field_name>) , 1) + lower(substring
(<field_name>,2,len(<field_name>))) AS SomeName
FROM <table_name>

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the dis_advantages of stored procedures, triggers, indexes?

1681


How to execute a sql statement using mssql_query()?

537


explain databases and sql server databases architecture? : Sql server database administration

511


what is a traditional network library for sql servers? : Sql server database administration

460


How to get the query of a table in sql server?

495






Can We Use Data-grids For Our Report In Ssrs?

147


What are the source of constraints?

501


State the difference between union and union all?

514


What is lock escalation? : sql server database administration

592


Explain what is the difference between a local and a global temporary table?

509


where can you add custom error messages to sql server? : Sql server administration

569


How does using a separate hard drive for several database objects improves performance right away?

526


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

540


Can the “if update (colname)” statement be used in a delete trigger?

548


How to add more data to the testing table in ms sql server?

545