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
How can you list all the columns in a database?
What are points to remember while using the fillfactor argument?
what's the information that can be stored inside a bit column? : Sql server database administration
Tell me what is difference between clustered and non clustered index?
How extra digits are handled with numeric data type literals?
What stored procedure can you use to display the current processes?
What is raiseerror? What is raiseerror?
What are the different types of normalization?
What are some examples of schemas?
What is sql azure database?
What is the use of set nocount on/off statement?
Can a synonym name of a table be used instead of a table name in a select statement?
What is a field in a table?
What is temporal data type?
What is dbcc updateusage?