empress101
IS-IT--Management
Hi I kinda new to SQL Oracle stuff.
I am trying to get a list of zip codes from a table i have.
I have SELECT ZIP_CODES FROM ADDRESS;
It works but i get also ZIP CODES that have more than 5 numbers in it. I am trying to compare this column of zip codes with another column of zip codes in another table that only have 5 numbers for each code.
I want to strip out, cut off, or turncate the zip codes listed in the first table to only 5 numbers.
I have searched alot in books and web but all talk about the TRUNC command. But this will not work for me because that deals with decimal place stuff. There are no decimal in the zip codes I am trying to work with.
Any one know how to truncate, strip, cutoff ending numbers off a real , whole number.
Example: zip code 802540001 how do i remove the last four numbers? the 0001
thanks any help much appreciated.
I am trying to get a list of zip codes from a table i have.
I have SELECT ZIP_CODES FROM ADDRESS;
It works but i get also ZIP CODES that have more than 5 numbers in it. I am trying to compare this column of zip codes with another column of zip codes in another table that only have 5 numbers for each code.
I want to strip out, cut off, or turncate the zip codes listed in the first table to only 5 numbers.
I have searched alot in books and web but all talk about the TRUNC command. But this will not work for me because that deals with decimal place stuff. There are no decimal in the zip codes I am trying to work with.
Any one know how to truncate, strip, cutoff ending numbers off a real , whole number.
Example: zip code 802540001 how do i remove the last four numbers? the 0001
thanks any help much appreciated.