Hi all, thanks in advance.
I am creating a car and customer database. I will have a database full of different types of cars. I will also have customers, these can be linked to a certain car for example a customer is selling a car, or a customer has just bought a car.
I am wanting to be able to search for a car using cascading dropdown.
At the moment my database is like this:
CarMakeTable
----------------
carReg - PK
carMakeID
carMake
CarModelsTable
-----------------
modelID - PK
carModelsID - FK
carModel
carMakeID - FK
CustomerTable
----------------
custNameID - PK
custName
custNo
carReg - FK
At the moment in my cascading dropdown when I search for a car make for example 'Ford', the next dropdown is visible which is car model. I can then select a ford model, but I get multiple choices of the same for example the person can choose a KA or KA. I just want there to be one of each model.
Thanks to anybody who can help make my tables a lot better.
I am creating a car and customer database. I will have a database full of different types of cars. I will also have customers, these can be linked to a certain car for example a customer is selling a car, or a customer has just bought a car.
I am wanting to be able to search for a car using cascading dropdown.
At the moment my database is like this:
CarMakeTable
----------------
carReg - PK
carMakeID
carMake
CarModelsTable
-----------------
modelID - PK
carModelsID - FK
carModel
carMakeID - FK
CustomerTable
----------------
custNameID - PK
custName
custNo
carReg - FK
At the moment in my cascading dropdown when I search for a car make for example 'Ford', the next dropdown is visible which is car model. I can then select a ford model, but I get multiple choices of the same for example the person can choose a KA or KA. I just want there to be one of each model.
Thanks to anybody who can help make my tables a lot better.