View Full Version : Using Append Delete Queries in Relational Databases


rhounsome
03-21-2002, 02:37 PM
If I create a delete query in a relational database and delete the main record all related records from linked tables to this record disappear, which I can understand due to the relationship between them.

How do I set up a query to append all this information to related tables to a set of tables prefixed Deleted.

Example

Main Table

Linked Tables

Table1, Table2, . . . ., Table5

Do I have to create seperate queries for all the tables I wish to append information from?

SimonC
03-21-2002, 10:58 PM
If the relationship between the tables is one-to-one, you can append into multiple tables simultaneously by appending into a query (which joins all the tables together). Where you have a one-to-many relationship, you really have to append the data separately.

Simon