(postcode_city is the postcode extracted from 'city'; postcode_addr1 is the postcode extracted from 'addrline1'; postcode_addr2 is the postcode extracted from 'addrline2'.)
Output:
Schema | Name | Type | Owner
public | ptoassigneend_city | table | researcher
public | ptoassigneend_postcode | table | researcher
public | ptoassigneend_state | table | researcher
SQL code is in:
E:\McNair\Projects\PatentAddress\AddrClean.sql
*'''Inconsistency between 'addrline' and 'country'(To do) '''