C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to count various characters in a big text through Query


Posted Date: 30 May 2008      Total Responses: 3

Posted By: Mohammad Faisal       Member Level: Bronze     Points: 1


There is a big Text contain 50 lines. Now how can I get the number of 'A' occurance, 'B' how many times, etc. How can I get the counting number through Query.



Responses

Author: venu kumar    30 May 2008Member Level: SilverRating:     Points: 2
i dont think we can write a query for that instead we can write a stored procedure


Author: @@@ Hyderabadi Biryani @@@    31 May 2008Member Level: DiamondRating:     Points: 1
SELECT LENGTH('VIJAY') - length(REPLACE('VIJAY','A')) AS No_Of_A_Characters
FROM DUAL


This is in oracle but you can write similar query in SQL Server.
Thanks -- Vj


Author: Mohammad Faisal    01 Jun 2008Member Level: BronzeRating:     Points: 2
But this code is not working in SQL Server 2005.


Post Reply
You must Sign In to post a response.
Next : How set regional setting formats to sql report?
Previous : How to use replication in sql server 2000 & 2005?
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

silicone halloween masks

Contact Us    Privacy Policy    Terms Of Use