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 / debasish

the good away to count is convert it to a arry and the
count the array element.. you can do as you like with array.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you use a subquery to find records that exist in one table and do not exist in another?

557


What is database replication? What are the different types of replication you can set up in sql server?

516


Can we write ddl in trigger?

501


List the different normalization forms?

548


What are a scheduled jobs?

542






What is the difference between resultset and resultsetmetadata?

527


Difference between uniqe index and uniqe constraint?

562


To automatically record the time on which the data was modified in a table, which data type should you choose for the column?

547


What are the advantages to use stored procedures?

577


Difference between DELETE and TRUNCATE?

620


What is the difference between the 2 operating modes of database mirroring?

584


What is a unique index?

534


What are the drawbacks of reporting in ssrs?

108


How to create indexed view?

589


Explain filtered indexes?

564