Marcus
Well-known member
Storing properties for planes, what's the better and more convenient approach?
A) I could create a table for each property ...
B) ... or store all properties in one table:
Code:
table plane: plane_id, name
1, airbus
3, cessna
A) I could create a table for each property ...
Code:
table plane_speed: speed_id, plane_id, speed
1,1,900
2,3,450
table plane_color: color_id, plane_id, color
1,3,white
B) ... or store all properties in one table:
Code:
table plane_description: desc_id, plane_id, description, property
1, 1, speed, 900
2, 3, speed, 450
3, 3, color, white