L
LisaMO
Hi
I wonder if you can help me, I am trying to create a database for a printing
company.
What I have so far are the following tables:
tblClients
ClientID (PK)
ClientName
Address etc
tblProducts
ProductID (PK)
ProductType
Colour etc
tblJobs
JobID (PK)
ClientID
JobNumber
DateBooked etc
I believe I also need to have two junction tables so have done the following:
tblClientProducts
ClientProductID (PK)
ClientID
ProductID
Client - lookup
Price
tblJobsProducts
JobsProductsID (PK)
JobsID
ClientProductID
Price
Every client has a different price for each product, therefore I believe the
prices need to be held in the junction tables, is this correct?
I need to set some of the fields in my junction tables as foreign keys, am I
right in thinking to do this I highlight all the fields and set as primary
keys having only only JobsProductsID for example as autonumber and the others
as long integers??
Am I going the right way about this or is there an easier way?
Thanks
Lisa
I wonder if you can help me, I am trying to create a database for a printing
company.
What I have so far are the following tables:
tblClients
ClientID (PK)
ClientName
Address etc
tblProducts
ProductID (PK)
ProductType
Colour etc
tblJobs
JobID (PK)
ClientID
JobNumber
DateBooked etc
I believe I also need to have two junction tables so have done the following:
tblClientProducts
ClientProductID (PK)
ClientID
ProductID
Client - lookup
Price
tblJobsProducts
JobsProductsID (PK)
JobsID
ClientProductID
Price
Every client has a different price for each product, therefore I believe the
prices need to be held in the junction tables, is this correct?
I need to set some of the fields in my junction tables as foreign keys, am I
right in thinking to do this I highlight all the fields and set as primary
keys having only only JobsProductsID for example as autonumber and the others
as long integers??
Am I going the right way about this or is there an easier way?
Thanks
Lisa