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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How could I design this database?

Status
Not open for further replies.

jennyek2000

Programmer
Joined
Sep 2, 2003
Messages
43
Location
GB
How could I design this database?

In the system you have a number of projects, each with there own attributes, which are stored in a table. Each project consists of a number of documents, which must also be stored in a table. So for every record in the projects table there is a table of documents. The system must allow you to create a job, which in turn creates a new document table with new data. How could I do this?
 
You really haven't provided much information (and this also sounds like a home work assignment); but generally you would need two tables (you really don't want a new table for each projects documents):

Project: ProjectID (PK), ProjectName, ProjectStartDate, etc.

Documents: DocumentID(PK), ProjectID(FK), DocumentName, DocumentCreateDate, etc.

Then on a form, you would have a button, create new project which would insert a new record in the project table and if you want a new record in the document table and populate the fields with the information.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top