jdgonzalez
Programmer
Hi everyone,
I'm a bit new to Oracle so I'm hoping someone can help me out with this. I have two columns that I'm trying to determine if they are correct. The problem is that one field contains a street address and the other contains the street address AND the city state and zip. So the data looks like this:
col a col b
101 main 101 main/anytown usa 12345
How can I check to see if they are the same. My inclination was to have a case statement like:
When I use the above code it's not returning a match.
I'd appreciate any help.
Thanks
I'm a bit new to Oracle so I'm hoping someone can help me out with this. I have two columns that I'm trying to determine if they are correct. The problem is that one field contains a street address and the other contains the street address AND the city state and zip. So the data looks like this:
col a col b
101 main 101 main/anytown usa 12345
How can I check to see if they are the same. My inclination was to have a case statement like:
Code:
(case when col a like 'col b%' then 1 else 0 end) as address_match
When I use the above code it's not returning a match.
I'd appreciate any help.
Thanks