You could use Substr(POSTCODE ,1,4) IN ('W1', 'W2', etc)
This would give the first 4 characters of the postcode and be more accurate than 'W1%', 'W2%',
User Profile
Collapse
-
How to crop a postcode in Oracle 10g
Hi,
I'm using Oracle Discoverer 10G and im looking to use a calculation crop a postcode so that I can do a group sort by area.
For example:
Postcode: AB12 12A
And I want Postcode: AB or AB12 returned in a new column.
Any help would be appreciated.
No activity results to display
Show More
Leave a comment: