I am creating a website that will have a database containing a list of games. There will be several different types of games.
I'm looking at a SQL Server entity relationship diagram for reference, but I'm wondering about the part I pasted below:
Why would
GAME_TYPE
be its own table rather than a part of "Games" Table?What is the purpose of having
GAME VARCHAR(MAX)
underGAME_TYPE
Table?
GAMES Table (Contains a listing of all games):
GAME_ID INT IDENTITY (1, 1)
GAME_TYPE_ID INT
GAME VARCHAR(MAX)
CONSTRAINT (GAME_TYPE_ID) REFERENCES GAME_TYPE(GAME_TYPE_ID)
GAME_TYPE Table (Contains a list of all game types):
GAME_TYPE_ID INT IDENTITY (1, 1)
GAME VARCHAR(MAX)
Just trying to get some clarity on the logic of SQL Server database designs.