MURALI KRISHNA
Member²
Hi All,
I need to return list of all post codes that does match with my formats like ("A9 9AA","A99 9AA")
i written the query like below but i am not getting correct result some of records are not displaying in the result set can you please help on this.
please confirm whether the character(|) used correctly or not,to combine these two different formats.
select cli,post_code
from address_v6
where
regexp_like(post_code,'^[A-Z]{1}[0-9]{1} [0-9]{1}[A-Z]{2}$
|^[A-Z]{1}[0-9]{2} [0-9]{1}[A-Z]{2}$')
I need to return list of all post codes that does match with my formats like ("A9 9AA","A99 9AA")
i written the query like below but i am not getting correct result some of records are not displaying in the result set can you please help on this.
please confirm whether the character(|) used correctly or not,to combine these two different formats.
select cli,post_code
from address_v6
where
regexp_like(post_code,'^[A-Z]{1}[0-9]{1} [0-9]{1}[A-Z]{2}$
|^[A-Z]{1}[0-9]{2} [0-9]{1}[A-Z]{2}$')