find first space in string (sql)

D

Dave Newing

Hopefully a simple question:
I am trying to return only the left hand charachters in a string before the
first space. In excel I can do this using LEFT(string,FIND(" ",string)-1). I
know I can use LEFT in SQL but is there a similar FIND function??

Thanks

DN
 
B

Brian

Dave Newing said:
Hopefully a simple question:
I am trying to return only the left hand charachters in a string before the
first space. In excel I can do this using LEFT(string,FIND(" ",string)-1). I
know I can use LEFT in SQL but is there a similar FIND function??

Thanks

DN

Assuming we're talking Access here, what you need is to look in help for the
function Instr.
 
Top