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

What is transaction server explicit transaction?

973


Can a function call a stored procedure in sql server?

911


Can we create clustered index on composite key?

982


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

1129


what is the difference between delete table and truncate table commands? : Sql server database administration

967


What is rolap and its advantage? : sql server analysis services, ssas

1220


How can we delete Duplicate row in table?

1000


Do you know what is rank function?

1035


How to see existing views in ms sql server?

989


What is the difference between grant and with grant while giving permissions to the user?

899


How do I find the port number for sql server?

926


What is the command to change the recovery model?

1001


Explain the steps to use transact-sql cursor?

961


What does it mean if @@cursor_row returns a negative number?

943


What happens if null values are involved in boolean operations?

942