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 are the differences between char and varchar in ms sql server?

1043


Explain steps of normalization?

976


What is the advantage of sql server?

1015


What happens if we shrink log file in sql server?

962


What is the difference between composite index and covering index?

933


List out a number of the wants to setup a SQL Server failover cluster?

1047


What happens if you delete a table that is used by a view?

974


How to perform backup for certificates in sql server? : sql server security

1071


What are pages and extents? : SQL Server Architecture

1003


How to see existing views in ms sql server?

1021


Why and when do stored procedure recompile?

967


How do I completely remove sql server instance?

1077


Why olap is used?

954


What is the difference between char, varchar and nvarchar?

1009


Can you please differentiate between a primary key and a unique key?

993