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 is the sql case statement used for?

759


What happens when converting big values to numeric data types?

755


How to connect a database with sql express.?

753


Explain indexed views and partitioned view with their syntax.

902


What is microsoft sql server?

698






Differentiate between SQL and ORACLE joins and write their syntax.

779


What is difference between rownum and rowid?

675


Do you know what are different types of replication in sql server?

740


What is the synonym of join?

688


What happens if you add a new index to large table?

682


Explain tablesample?

730


what is database replicaion? : Sql server database administration

820


What is cursors?

810


what are cursors? : Sql server database administration

725


What are the events recorded in a transaction log?

733