S
S
sorry_i_noob2018-12-01 14:20:46
Database design
sorry_i_noob, 2018-12-01 14:20:46

Can you explain an example of second normal form?

Hello.
https://habr.com/post/113260/
I found on the Internet an example of a table with the following fields:
Detail, Warehouse, Quantity, Warehouse address.
And an explanation of the second normal form:

The key in this table is a pair of Item and Warehouse.
If there are no parts in the warehouse yet, then we do not have the opportunity to store the address of the warehouse, since the scheme does not provide for such a situation. Therefore, adding a new warehouse is impossible (insertion anomaly), and removing parts from the warehouse means that we will lose information about its address (deletion anomaly).

I have a question. Why can't we store the warehouse address if there are no parts on it? You can also specify an empty field in the Detail, and 0 in the Quantity.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimonchik, 2018-12-01
@dimonchik2013

The key in this table is a pair of Item and Warehouse.

try

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question