S
S
Stanislav2016-11-22 10:26:53
SQL
Stanislav, 2016-11-22 10:26:53

Many-to-many relationship in MS SQL for what?

Dear gurus of your business, tell me, please! Explain more precisely. Gnawing granite science in the study of MS SQL, namely in T-SQL.
I understood the one-to-one connection, I also understood the one-to-many connection.
But I just don't understand the many-to-many relationship. Why is it required, why create an intermediate table, etc.
Explain in a simple way please! And some real life examples, please.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2016-11-22
@stmassalskiy

Real life example: There is a table of goods of an online store and there is a table of promotions that apply to goods. Any product can participate in multiple promotions and any promotion can include multiple products. And there is no way to store information about these relationships other than using an additional table.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question