Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

How we create SQL Server 2005 Reporting Services ? Give me Sample

2044


How to generate create table script on an existing table in ms sql server?

1195


What is cross join in sql server joins?

1202


How can you set the threshold at which sql server will generate keysets asynchronously?

1052


Explain what is the purpose of sql profiler in sql server?

1131


Can you explain the disadvantages/limitation of the cursor?

1054


how can a database be repaired? : Sql server administration

1018


What is acid properties?

1190


How to create a store procedure with encryption?

1055


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

1195


How to include date and time values in sql statements?

1142


Explain different types of index?

1101


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

1046


which backup strategy you are following at ur company

2193


What is the difference between rank and dense_rank?

1164