D
D
Dmitry Skogorev2015-09-20 21:23:51
Database design
Dmitry Skogorev, 2015-09-20 21:23:51

What is the best way to plan architecture?

Good day everyone.
Interested in the most correct way to store data to implement the nested category filter.
For example, we are interested in such a structure
Brand-> model-> year-> engine
size Vaz-> 2109-> 1999-> 1300
How to most correctly design the base and subsequently make a selection according to real values?
Thanks in advance for the replies and links.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2015-09-20
Protko @Fesor

normal form

S
sasha, 2015-09-20
@madmages

vendor <-> model is essentially a pointer to a specific car that can have modifications such as a body, engine, etc. Further, specific cars may change from year to year.
as an option, it can be divided like this
T1: auto_id, vendor, model
T2: modification_id, name
T3: auto_id, modification_id, value

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question