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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help Me select statement

Status
Not open for further replies.

kandukurip

Technical User
Sep 27, 2002
4
US
Good Morning

Please Help Me. I have one table with 1 fields (details). I want to find out a particular number in the data.

sample data
Details(field Name)
NO prior tx,collapsed 4 min ago,unconscious,NOT breathing,NO pulse,chest .


My problem is I want to find out time after the next to collapsed time. In the above scenario I want result like 4 min.

I will appreciate your reply.

Have a nice day

Mike
 
select substr(details
, charindex('collapsed ',details)+10)
, 6 )

searches for the string 'collapsed ' and takes the next 6 characters after it

will not find 'collapsd ' or 'collapse '

rudy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top