473,499 Members | 1,725 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Mailing Addresses: Multiple addresses/address history?

For better or worse, I have chosen to implement mailing addresses in a
particular application as a separate table. One Person ==> Many Addresses.

It is a database for managing school reunions and people really do have multiple
(summer/winter, for instance) mailing addresses. I'd also like to keep track
of people's defunct addresses.

To that end, "tblAddress".
But I'm not sure how to handle address statuses/status dates....and even whether
I need some more address-specific fields besides AddressType.

Right off the bat, I need to identify addresses as current or defunct and keep
track of when an address was last verified or when it became defunct (a form of
verification, I guess...)

Maybe tblAddress ==> tblAddressAddressStatus ==> tlkpAddressStatus where the
link table has "Date" and "Remarks" columns?
--
PeteCresswell
Nov 13 '05 #1
2 2823
Can you get by with AddressType for summer/winter, for instance and
DateOfNewAddress? You could then use a query to return the type of address
you want and then return the most current address of that type using the
DateOfNewAddress field.

--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
re******@pcdatasheet.com
www.pcdatasheet.com
"(Pete Cresswell)" <x@y.z> wrote in message
news:7h********************************@4ax.com...
For better or worse, I have chosen to implement mailing addresses in a
particular application as a separate table. One Person ==> Many Addresses.
It is a database for managing school reunions and people really do have multiple (summer/winter, for instance) mailing addresses. I'd also like to keep track of people's defunct addresses.

To that end, "tblAddress".
But I'm not sure how to handle address statuses/status dates....and even whether I need some more address-specific fields besides AddressType.

Right off the bat, I need to identify addresses as current or defunct and keep track of when an address was last verified or when it became defunct (a form of verification, I guess...)

Maybe tblAddress ==> tblAddressAddressStatus ==> tlkpAddressStatus where the link table has "Date" and "Remarks" columns?
--
PeteCresswell

Nov 13 '05 #2
You have a table named person. You have a table named address. The primary
keys are person_id and address_id. Table address will have a foreign key to
table person, add_person_id. It will also have a field, add_start_date,
which is the date the address became a correct address. The newest start
date is the 'current address'.

Now, if you want to have separate mailing and physical addresses that are
both active, it becomes more complicated, but the principle is the same.
You'll just need to add a field add_end_date, so that you can easily tell
which address have not ended/are current.

The only problem with the above is that you'll almost always want the
current or primary address, and it's so much extra work to implement queries
that find the most recent start date for every person - so try this.

Add a foreign key field to your person table, per_prim_address_id, the
address_id of the person's primary/current address. This is much easier to
include in queries where you just want to print a list of addresses. Also
useful for per_prim_phone_id, for people with more than one phone number.
Darryl Kerkeslager

"(Pete Cresswell)" <x@y.z> wrote in message
news:7h********************************@4ax.com...
For better or worse, I have chosen to implement mailing addresses in a
particular application as a separate table. One Person ==> Many Addresses.
It is a database for managing school reunions and people really do have multiple (summer/winter, for instance) mailing addresses. I'd also like to keep track of people's defunct addresses.

To that end, "tblAddress".
But I'm not sure how to handle address statuses/status dates....and even whether I need some more address-specific fields besides AddressType.

Right off the bat, I need to identify addresses as current or defunct and keep track of when an address was last verified or when it became defunct (a form of verification, I guess...)

Maybe tblAddress ==> tblAddressAddressStatus ==> tlkpAddressStatus where the link table has "Date" and "Remarks" columns?
--
PeteCresswell

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1933
by: Dave Moore | last post by:
Hi All, Is it possible to implement a mailing list using PHP?. I know I could maintain a list of emails addresses in a db and send mail to them through my website, but how can I get true mailing...
1
1709
by: zinger_tower_burger | last post by:
Hello All, Can anyone point me to a php script that stores email addresses into a txt file? The purpose for this is for a mailing list, ideally if a user wanted to unsubscribe the email would...
5
1701
by: Jay Villa | last post by:
I want to store multiple mailaddress like home address and shipping address Sometimes addresses will be more than two. I am thinking about storing the details as a dictionary object. Any other...
3
4672
by: Mark V. | last post by:
Here's what I have and I'm stumped. I have a table that has several thousand names and addresses. I only want to send to one address in a household. So what I would like to do is create a new...
87
3234
by: j0mbolar | last post by:
I've read in the standard that addresses basically can't be interpreted as integers. If they can, it is implementation defined behavior. However, if they can't be viewed as integers in any sense...
4
2527
by: Andy M | last post by:
ALERT There is a person by the name of Mike Cox who's trying to turn this mailing list into a Big-8 newsgroup. Many of you know that this and most of the other postresql mailing lists are...
4
6371
by: deekay | last post by:
At the moment I have simple Access DB with 3 tables Companies, Contacts and Activities. In the Company table we have stored the address fields Address Street Suburb City Code
4
2518
by: valeberry | last post by:
//Index.php <html><head><title>Mailing List Administration</title></head><body> <br> <center><H1>Mailing List Administration</H1></center> Send an email to a mailing list: <form method=post...
3
2009
by: razjafry | last post by:
Hi Experts, I have two tables - tblContact and tblOrg Contact table has only one option of mailing address e.g address,city,postal code whereas Org table has two options - one simple address -...
0
7006
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6892
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7385
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5467
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4597
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1425
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
294
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.