Ask the Expert

Linking two databases by relating two tables

I would like to know how to take information from one database form and embed that information into another database form and also keep a link between both databases. For example I have a form that has the demographics of people, e.g., First Name, Last Name, Address, and so on. I would like to be able to take selected information from the form in database I and make it appear in database 2 so that I can the continue in database 2 filling out information about that person who is in database 1. For example, for special survey forms the two databases have to stay linked so that queries can be run over both databases to get more information for reports and such.

    Requires Free Membership to View


You are looking for a foreign key to relate your two tables. Check the database documentation for how to create and manage a foreign key using your database.

For More Information

This was first published in May 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: