I'm making a program for an A level project which has users and each user can have many scores. This is the first time I'm making a database (SQL). So far I've got to this stage:
user(ID[PK], Username, Hashed_PW, Theme_Colour)
gameMode1(ID[FK], Date_Time, Score)
The primary key is a composite of ID/Date_Time.- gameMode2(ID[FK], Date_Time, Score)
The primary key is a composite of ID/Date_Time.
One user record can have many gamemode1 records. One user record can also have many gameMode2 records.
Gamemode1 and gamemode 2 have no relation.
What would be better:
Have separate tables for gamemode1 and 2 OR
Have the same table for gamemode 1 and 2 and introduce a type field
(Would this cause unnecessary data redundancy?)
Also what will help make this in 3NF? (My teacher is not sure so I asked here.)