starbase59
MIS
I have a field where the city, state and zip are one text string separated by spaces. I only want the city, in every case, so I'm looking for everything left of the first space.
Examples of field:
MIAMI FL 33131
EDISON NJ 08837
NEWTON MA 02458
I want:
MIAMI
EDISON
NEWTON
Would I use CharIndex or PatIndex for this? and how?
THanks in advance.
Examples of field:
MIAMI FL 33131
EDISON NJ 08837
NEWTON MA 02458
I want:
MIAMI
EDISON
NEWTON
Would I use CharIndex or PatIndex for this? and how?
THanks in advance.