Line 613 of your current g-naf.sql uses the line left outer join staging.locality l on l.locality_pid = ad.locality_pid you may wish to update this to left outer join staging.locality l on l.street_locality_pid = ad.street_locality_pid
At present your join will create extra records as the locality_pid is a 1:n join.
Line 613 of your current
g-naf.sql
uses the lineleft outer join staging.locality l on l.locality_pid = ad.locality_pid
you may wish to update this toleft outer join staging.locality l on l.street_locality_pid = ad.street_locality_pid
At present your join will create extra records as the locality_pid is a 1:n join.