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 do indexes help, types?

968


Explain having clause?

972


What are different types of join?

1319


Explain transaction server explicit transaction?

936


When would you prefer to have a minimum number of indexes?

911


What is transaction server distributed transaction?

1060


How to assign null values to variables or columns?

977


Explain few of the new features of sql server 2008 management studio

922


How to create a new table in a given schema?

1190


How to create prepared statements using odbc_prepare()?

1065


What are system databases in ms sql server?

1062


When columns are added to existing tables, what do they initially contain?

1036


Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?

1140


Why main is user defined function?

1014


Can you change the data type of a column in a table after the table has been created? If so, which command would you use?

1035