About
Pricing
Community
Teams
Start Free Trial
Log in
brgdotnet
asked on
7/22/2015
How to parse a line of text in Sql
I need to parse a word out of a column of text, and then print out the number of times it occurs. Can someone show me how to do that in SQL?
Example:
Id Text
1 Today is a happy day because the weather is happy
2 be happy
3 be happy because when you are not happy you will be un happy, so be happy
So the sql query I need would print out the following. Can someone show me how to do that?
Id TimesOccurred
1 2
2 1
3 4
Microsoft SQL Server
1
1
Last Comment
chaau
8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
chaau
7/22/2015
THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes