imstillatwork
IS-IT--Management
I don't know why i am haveing a tough time on this one. i could just do it, but i want to do it the best way.
Its for cars; make, model, engine,
I'm just not convinced this is the way I should do it, because I also want to inlcude the years for the cars, and that vairies per model / engine combination
I was going to have a cars table that would have the following, but need help with getting the years in there also. Should Each row in the CARS table have a YEAR field, so a 1993 VW Corrado SLC and a 1994 VW Corrado SLC would have their own rows, even though they are basicly identica cars? or should I do a single row with a from and to year field?
i am leaning towards the one row for every configuration, since the data is small (mostly foriegn keys) and it would be precise and easy to look up between years, by model, etc..
Someone have any suggestions? please?
CARS
- id
- make_id
- model_id
- engine_id
- info
MAKE
- id
- name
- info
MODEL
- id
- name
- info
ENGINE
- id
- cylinders
- hp
- displacement
- trq
- etc...
Kevin
Its for cars; make, model, engine,
I'm just not convinced this is the way I should do it, because I also want to inlcude the years for the cars, and that vairies per model / engine combination
I was going to have a cars table that would have the following, but need help with getting the years in there also. Should Each row in the CARS table have a YEAR field, so a 1993 VW Corrado SLC and a 1994 VW Corrado SLC would have their own rows, even though they are basicly identica cars? or should I do a single row with a from and to year field?
i am leaning towards the one row for every configuration, since the data is small (mostly foriegn keys) and it would be precise and easy to look up between years, by model, etc..
Someone have any suggestions? please?
CARS
- id
- make_id
- model_id
- engine_id
- info
MAKE
- id
- name
- info
MODEL
- id
- name
- info
ENGINE
- id
- cylinders
- hp
- displacement
- trq
- etc...
Kevin