Answer the question
In order to leave comments, you need to log in
Have I designed the data connection in the DB correctly?
There are 3 categories of data, each dependent on the other:
Answer the question
In order to leave comments, you need to log in
Regions - disciplines and disciplines - groups - apparently, a many-to-many relationship (in one region there are many disciplines, but the same discipline, football, for example, can be in several regions, the same with groups). Do this: disciplines, regions and groups - in separate tables, where there are only their id and names. The fourth table consists of the id of the region, the id of the discipline and the id of the group, as well as the id of the entry itself in the 4th table. record id from the 4th table - a foreign key for records in the matches table. By the way, in your case, such a scheme will help save a lot of space on the hard drive of the database server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question