Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract multiple string parts from a string

Status
Not open for further replies.

eo

MIS
Apr 3, 2003
809
Using a Twitter Tweet loaded to a SQL table as an example, how would I create new columns to show # and @ string parts. For example the column called 'Tweet' contains 'Our home @pmanfoggers #home #house #garden #adelaide #southaustralia #building #brick #bricklove... <via #instagram>'

I would like to create 6 additional VIEW columns that shows the 1st 3 # (hashtags) and the 1st 3 @ references.

The result should look like this:

Tweet - Our home @pmanfoggers #home #house #garden #adelaide #southaustralia #building #brick #bricklove... <via #instagram>
Hashtag1 - #home
Hashtag2 - #house
Hashtag3 - #garden
Ref1 - @pmanfoggers
Ref2 - NULL
Ref3 - NULL

Can anyone help with a potential query?



EO
Hertfordshire, England
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top