I am trying to run a select query on a table containg UK postcode data. The field entries are varying lenght and divided into two section example entries would be:
N1 9PF
Wc1 1HF
DA1 1DZ
WC1a 1fg
in the examples above I want all the characters before the space and the first one after the space. The position of the space is not constant (i suppose I could delete the space and add it in afterwards? but this seems an inelegant solution)
Basically what I want to do is remove the last two characters from the entries. using the select left(columnname, characters) is not feasible in this case
any suggestions would be gratefully recieved.
peter
N1 9PF
Wc1 1HF
DA1 1DZ
WC1a 1fg
in the examples above I want all the characters before the space and the first one after the space. The position of the space is not constant (i suppose I could delete the space and add it in afterwards? but this seems an inelegant solution)
Basically what I want to do is remove the last two characters from the entries. using the select left(columnname, characters) is not feasible in this case
any suggestions would be gratefully recieved.
peter