Hello,
I'm trying to find the first space in every row in a specific column
Col1
------
BOB JOE FRANK
DAVE
WILLIAM
I need my result set to be
BOB
DAVE
WILLIAM
I've tried
Select instrrev(COL1, " ") From Table1
I keep getting zero back. Once I get the position of the first space then I can do a left(COL1, Position of the first space) .
Thank You
I'm trying to find the first space in every row in a specific column
Col1
------
BOB JOE FRANK
DAVE
WILLIAM
I need my result set to be
BOB
DAVE
WILLIAM
I've tried
Select instrrev(COL1, " ") From Table1
I keep getting zero back. Once I get the position of the first space then I can do a left(COL1, Position of the first space) .
Thank You