S
Shawn Johnson
I have two tables
The first table has information about various postal codes like what
streetname the postal code services, the from civic number, the to civic
number (to identify the range) and so on.
The second table is simply a list of customers with their addresses and
their postal codes.
What I am trying to accomplish is to link the postal code data in the first
table to the customers in the second table. This is fairly easy just by
linking postal code to postal code from both tables. The problem I'm having
though is when 1 postal code lets say E1G1T1 services more than one range or
more than one street. The customers that have the postal code E1G1T1 get
pulled for every street and or range that the postal code services.
Fortuneately the Canada Post system is fairly granular so this does not
happen very often except in rural areas. Nevertheless I need the customers
to be routed to the right "version" of the Postal code.
Normally there is a different postal code for each street segment but
sometimes it will have these entries
Postal Code Street Name Street Type Civic
From# Civic To #
E1G1T1 Main St
1 37
E1G1T1 Main St
2 38
E1G1T1 Water Rd
1 7
What I was thinking was that since we know what the street and the civic
number of each customer is we should be able to match them based on postal
code and street name. The problem I'm having is trying to figure out how to
link a customer to the correct civic range
for example Billy Bob @ 35 Main St needs to be put in the postal code that
services Main St, Civic range From 1 To 37 and not in the postal code that
services Main St, Civic range From 2 To 38
Can anyone help me?! I hope this is a clear.
Thanks
Shawn Johnson
The first table has information about various postal codes like what
streetname the postal code services, the from civic number, the to civic
number (to identify the range) and so on.
The second table is simply a list of customers with their addresses and
their postal codes.
What I am trying to accomplish is to link the postal code data in the first
table to the customers in the second table. This is fairly easy just by
linking postal code to postal code from both tables. The problem I'm having
though is when 1 postal code lets say E1G1T1 services more than one range or
more than one street. The customers that have the postal code E1G1T1 get
pulled for every street and or range that the postal code services.
Fortuneately the Canada Post system is fairly granular so this does not
happen very often except in rural areas. Nevertheless I need the customers
to be routed to the right "version" of the Postal code.
Normally there is a different postal code for each street segment but
sometimes it will have these entries
Postal Code Street Name Street Type Civic
From# Civic To #
E1G1T1 Main St
1 37
E1G1T1 Main St
2 38
E1G1T1 Water Rd
1 7
What I was thinking was that since we know what the street and the civic
number of each customer is we should be able to match them based on postal
code and street name. The problem I'm having is trying to figure out how to
link a customer to the correct civic range
for example Billy Bob @ 35 Main St needs to be put in the postal code that
services Main St, Civic range From 1 To 37 and not in the postal code that
services Main St, Civic range From 2 To 38
Can anyone help me?! I hope this is a clear.
Thanks
Shawn Johnson