This, I hope is an easy one:
I am attempting to break out in a text field all characters
before and after a blank space (but only blank spaces between two alpha characters.) I have tried many variations on the 'locate' command, but am unable to obtain the desired result.
(for example, if the text field reads as 'JOHN SMITH' I am attempting to break out the text into 2 new query result columns col1 = 'JOHN' col2 = 'SMITH'.)
left(name, locate(last, ' ')-1),
right(name, locate(last, ' ')+6)
Thanks from a newcomer. I am new and self taught, so pls. be gentle.
I am attempting to break out in a text field all characters
before and after a blank space (but only blank spaces between two alpha characters.) I have tried many variations on the 'locate' command, but am unable to obtain the desired result.
(for example, if the text field reads as 'JOHN SMITH' I am attempting to break out the text into 2 new query result columns col1 = 'JOHN' col2 = 'SMITH'.)
left(name, locate(last, ' ')-1),
right(name, locate(last, ' ')+6)
Thanks from a newcomer. I am new and self taught, so pls. be gentle.