Click here to Skip to main content
15,919,931 members
Home / Discussions / Database
   

Database

 
GeneralRe: Help performing a count Pin
Blue_Boy1-May-08 23:41
Blue_Boy1-May-08 23:41 
GeneralRe: Help performing a count Pin
AdamskiR1-May-08 23:42
AdamskiR1-May-08 23:42 
GeneralRe: Help performing a count Pin
Blue_Boy1-May-08 23:50
Blue_Boy1-May-08 23:50 
GeneralRe: Help performing a count Pin
AdamskiR9-May-08 4:08
AdamskiR9-May-08 4:08 
GeneralRe: Help performing a count Pin
Blue_Boy9-May-08 7:09
Blue_Boy9-May-08 7:09 
QuestionHOW TO MERGE IN ONE! Pin
kibromg24-Apr-08 4:25
kibromg24-Apr-08 4:25 
AnswerRe: HOW TO MERGE IN ONE! [modified] Pin
Blue_Boy24-Apr-08 9:52
Blue_Boy24-Apr-08 9:52 
QuestionSQL 2000 ----- Extracting Rows from Delimited Strings Pin
n1coltsfan24-Apr-08 2:35
n1coltsfan24-Apr-08 2:35 
The query I am passing the two letter strings like "UV+ 131.0000+ 0.0000" work fine when it goes to 3 and up like "TLOV+2048.0000+ 0.0000" it starts messing up the right and middle strings and showing the + sign delimiter.

Please Help !!!

select *,left(raw_payload,charindex('+',raw_payload,1)-1),
substring(left(raw_payload, 1-len(left(raw_payload,charindex('+',raw_payload,1)+1)),
len(raw_payload)),charindex('+',raw_payload,1)* charindex('+',raw_payload,1)-1 ),substring(right(raw_payload,charindex('+',raw_payload,1)*3),charindex('+',right(raw_payload,charindex('+',raw_payload,1)*3),1)+1,len(raw_payload))
from raw_data.dbo



Fieldname: raw_payload

"S9000+"
"UV+ 131.0000+ 0.0000"
"UV+ 132.0000+ 0.0000"
"UV+ 140.0000+ 0.0000"
"UV+ 141.0000+ 0.0000"
"UV+ 142.0000+ 0.0000"
"UVN+ 524.0000+ 0.0000"
"UVN+ 525.0000+ 0.0000"
"UVN+ 527.0000+ 0.0000"
"UVN+ 528.0000+ 0.0000
"TLOV+2044.0000+ 0.0000"
"TLOV+2045.0000+ 0.0000"
"TLOV+2046.0000+ 0.0000"
"TLOV+2047.0000+ 0.0000"
"TLOV+2048.0000+ 0.0000"
"TLOV+2049.0000+ 0.0000"
"OTLWV+2201.0000+ 0.0000"
"OTLWV+2202.0000+ 0.0000"
"OTD/ROV+2401.0000+ 0.0000"
"OTD/ROV+2402.0000+ 0.0000"
"OTD/ROV+2403.0000+ 0.0000"
"OTD/ROV+2404.0000+ 0.0000"
""OTD/ROV+2432.0000+ 0.0000"
"OTD/ROV+2436.0000+ 0.0000"
"OTD/ROV+2443.0000+ 0.0000"
"OTD/ROV+2444.0000+ 0.0000"
"OTD/ROV+2445.0000+ 0.0000"
"OTD/ROV+2446.0000+ 0.0000"
"G59WO+5324.0000+ 36.6190"
"TLMLV+5601.0000+ 0.0000"
"TLMLV+5602.0000+ 20.0000"
"TLMLV+5603.0000+ 0.0000"
"TLMLV+5605.0000+ 0.0000"
"TLMLV+5606.0000+ 75.0000"
"TLMLV+5607.0000+ 175.0000"
GeneralRe: SQL 2000 ----- Extracting Rows from Delimited Strings Pin
Blue_Boy24-Apr-08 8:36
Blue_Boy24-Apr-08 8:36 
GeneralRe: SQL 2000 ----- Extracting Rows from Delimited Strings Pin
n1coltsfan25-Apr-08 4:42
n1coltsfan25-Apr-08 4:42 
GeneralRe: SQL 2000 ----- Extracting Rows from Delimited Strings Pin
Blue_Boy25-Apr-08 5:01
Blue_Boy25-Apr-08 5:01 
GeneralSelection between ranges in sql server 2005 Pin
salon24-Apr-08 2:00
salon24-Apr-08 2:00 
GeneralRe: Selection between ranges in sql server 2005 Pin
Broken Bokken24-Apr-08 2:37
Broken Bokken24-Apr-08 2:37 
GeneralCount number of records in related tables Pin
Kevin Brydon24-Apr-08 0:54
Kevin Brydon24-Apr-08 0:54 
GeneralRe: Count number of records in related tables Pin
Ashfield24-Apr-08 1:30
Ashfield24-Apr-08 1:30 
GeneralRe: Count number of records in related tables Pin
Kevin Brydon24-Apr-08 2:49
Kevin Brydon24-Apr-08 2:49 
GeneralRe: Count number of records in related tables Pin
Ashfield24-Apr-08 3:18
Ashfield24-Apr-08 3:18 
GeneralDiff b/W ADO & ADO.net Pin
sonia.sardana23-Apr-08 23:46
sonia.sardana23-Apr-08 23:46 
GeneralRe: Diff b/W ADO & ADO.net Pin
Mycroft Holmes24-Apr-08 20:19
professionalMycroft Holmes24-Apr-08 20:19 
GeneralTimeout Exception [modified] Pin
Vimalsoft(Pty) Ltd23-Apr-08 23:25
professionalVimalsoft(Pty) Ltd23-Apr-08 23:25 
GeneralRe: Timeout Exception Pin
Mike Dimmick24-Apr-08 4:15
Mike Dimmick24-Apr-08 4:15 
GeneralRe: Timeout Exception Pin
Vimalsoft(Pty) Ltd24-Apr-08 20:09
professionalVimalsoft(Pty) Ltd24-Apr-08 20:09 
GeneralRe: Timeout Exception Pin
GuyThiebaut24-Apr-08 5:52
professionalGuyThiebaut24-Apr-08 5:52 
GeneralRe: Timeout Exception Pin
Vimalsoft(Pty) Ltd24-Apr-08 20:03
professionalVimalsoft(Pty) Ltd24-Apr-08 20:03 
GeneralDropping all Tables Pin
Broken Bokken23-Apr-08 16:10
Broken Bokken23-Apr-08 16:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.