G
Guest
I have "master" table that is related to 6 other tables by email address,
name, address, newsletter subscription and specific areas of interest (areas
of interest and newsletter subscription are yes/no fields) All of the tables
have "record ID" (auto-number) as the primary key. The 6 tables are distinct
areas of interest to the customer. The master table is a combination of all
interests of the customer plus a newsletter subscription field. I receive
the data via web forms that are mapped to the separate tables in the
database. (there are many places a person can sign up for different types
information on the web site). The information is stored in the specific table
that is mapped to the sign up form on the webpage (one person's information
can be located in many tables), but is also added to the master table if a
"yes" box is checked for the newsletter subscribtion on the web form. The
master table is then used as my datasource to run newsletter marketing
campaigns. The other tables are used marketing for other specifc areas of
interests. When I run a newsletter campaign, the recipient can "unsubscribe"
to the newsletter. If unsubscribed, the master datatable field "unsubscribe"
is incremented to a "1". I can then run a delete query where
"unsubscribe"=>0. This part works fine. My problem is that if someone signs
up for one area of interest and checks the newsletter subscription, then
subsequently wants to unsubscribe to the newsletter but keep his information
in the original area of interest table, will running the "unsubscribe" query
in the master delete all of the records in the other tables because they are
related? Would a better option be to remove the relationships and then append
the records that want the newletter(by checking yes on the webform) to the
master table then if the person later unsubscribes he will be deleted from
only the master table?
name, address, newsletter subscription and specific areas of interest (areas
of interest and newsletter subscription are yes/no fields) All of the tables
have "record ID" (auto-number) as the primary key. The 6 tables are distinct
areas of interest to the customer. The master table is a combination of all
interests of the customer plus a newsletter subscription field. I receive
the data via web forms that are mapped to the separate tables in the
database. (there are many places a person can sign up for different types
information on the web site). The information is stored in the specific table
that is mapped to the sign up form on the webpage (one person's information
can be located in many tables), but is also added to the master table if a
"yes" box is checked for the newsletter subscribtion on the web form. The
master table is then used as my datasource to run newsletter marketing
campaigns. The other tables are used marketing for other specifc areas of
interests. When I run a newsletter campaign, the recipient can "unsubscribe"
to the newsletter. If unsubscribed, the master datatable field "unsubscribe"
is incremented to a "1". I can then run a delete query where
"unsubscribe"=>0. This part works fine. My problem is that if someone signs
up for one area of interest and checks the newsletter subscription, then
subsequently wants to unsubscribe to the newsletter but keep his information
in the original area of interest table, will running the "unsubscribe" query
in the master delete all of the records in the other tables because they are
related? Would a better option be to remove the relationships and then append
the records that want the newletter(by checking yes on the webform) to the
master table then if the person later unsubscribes he will be deleted from
only the master table?