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 can count the string ?
for ex: If i have string like 'bhaskar' then i need like
b:1
h:1
a:2
s:1
k:1
r:1

please give any idea on that


Answer Posted / amit kumar

firstaly take string in any variable. then index with start(')
and end(');then u got the full string length. after that u
substring one character and add (:1) and so on to reach the
last character..

and finally u get result.

bye

Is This Answer Correct ?    3 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you list all the columns in a database?

972


What are points to remember while using the fillfactor argument?

1018


what's the information that can be stored inside a bit column? : Sql server database administration

1091


Tell me what is difference between clustered and non clustered index?

982


How extra digits are handled with numeric data type literals?

1034


What stored procedure can you use to display the current processes?

945


What is raiseerror? What is raiseerror?

1194


What are the different types of normalization?

1221


What are some examples of schemas?

1031


What is sql azure database?

206


What is the use of set nocount on/off statement?

1143


Can a synonym name of a table be used instead of a table name in a select statement?

1093


What is a field in a table?

1075


What is temporal data type?

967


What is dbcc updateusage?

1258