D
D
Drovosek012018-04-13 12:22:35
SQL Server
Drovosek01, 2018-04-13 12:22:35

Why (in the screenshot) is the Products table subdivided into several?

Watching a video from ITVDN on MSSQL... https://itvdn.com/ru/video/sql-workshop
I don't understand why Products was divided into Stocks and ProductDetails. The "Qty" field in Stocks is "quantity".
After all, you can put all the information from these adjacent tables into one table - Products.
5ad076cadbacd628430282.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
d-stream, 2018-04-13
@Drovosek01

Perhaps it means that in the future - there will be warehouses and something like product_id, stock_id, qnt - that is, the number of positions in different warehouses.

R
res2001, 2018-04-13
@res2001

With ProductDetail, the same is more or less clear: you can have iPhones: red, green, ...
With Stocks, it’s not clear why it is in this form. Perhaps something further in the video is explained.
Because this is a training material, then make allowance for the fact that this is a greatly simplified model, it is unlikely that it can be used in this form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question