A
A
aTei2011-12-16 21:19:28
MySQL
aTei, 2011-12-16 21:19:28

MySQL: How to effectively organize an ordinal relationship?

There is an animation base.
There is an ordinal relationship between animations, for example:
First season (vid_id: 1) -> Second season (vid_id: 13) -> Movie (vid_id: 4) -> Third season (vid_id: 10)…

How to organize these links efficiently in MySQL?
And how to correctly make a request to what you offer, for example, by vid_id: 13.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
miggi, 2011-12-16
@miggi

The chain of connections you've provided is not entirely clear.
Having simplified the task for you as much as possible, I can offer an option with one single table,
if I understand the task correctly, then you can organize the Films table which will contain columns - vid_id, season_num. You can operate on data with select...where queries.
I would not advise to produce levels of abstraction - the first, second seasons.
I hope these tips will help you in your endeavors with MySQL!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question