Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

three tables with identity seed

Status
Not open for further replies.

onressy

Programmer
Mar 7, 2006
421
CA
Hi, I wondering in sql2005 how i can configure two tables to take on the primary key/non duplicating value from another table. I have three table set up like this,
Table1:
appID - primary key/incrementing/non duplicate
fName

Table2:
appID
lName

Table3:
appID
gradYear

When an insert is done on table 1, i would like the primary key value to be created in table 2 and table 3.

Current the table have no data. How can i create this type of relationship? THanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top