Hello I need a suggestion.
I have two examples.
In both cases I have one table for cars and one for orders. A car is defined over brand and model. An order has an order number and a car. I know, the order table is not well defined. But my problem is the car table. Which Example for the car table is better? The first one looks better. But whenever I use the table cars for join with e.g. orders, I have to use both columns. In the second example I have only one column (ID_Car), which I have to care about.
Which Case would you prefer? Could one way cause later problems?
If I use the example 2. Are the Primary Key’s and the unique statement right. Or is it better to define the Columns ID_Car as primary key and Unique(Brand, Model)?
Thank you guys