Wilder1626
asked on
Oracle - Search with postal code have a specific format
Hi
I would like to know how i can search in an oracle table where the postal code format is 3 digits & " " & 3 gits
SELECT POSTAL_CODE
FROM LOCATION
where POSTAL_CODE format = LEFT(POSTAL_CODE, 3) + ' ' + RIGHT(POSTAL_CODE, 3 );
How can i do that?
I would like to know how i can search in an oracle table where the postal code format is 3 digits & " " & 3 gits
SELECT POSTAL_CODE
FROM LOCATION
where POSTAL_CODE format = LEFT(POSTAL_CODE, 3) + ' ' + RIGHT(POSTAL_CODE, 3 );
How can i do that?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. This is exactly what i needed.
Whatsoever, slightwv's solution is the correct way :-))