Hello. Please help in creating a database. The bottom line is this: there will be a small script where you can find out the grades for the subjects (simple, it will not be used, such a task :)) Each has his own record number, when entering grades from the drop-down menu (select), the correct scoresheet student is selected and the grade number is entered. But each student has a lot of grades (i.e. there are several grades for one record book). Approximately presented it this way (MS SQL).
Table students:
create table students ( stud_id bigint primary key, stud_name char(200), stud_fam char(254) );
Table with estimates
CREATE TABLE ocenki ( stud_id bigint foreign key references students(stud_id), predmet char(254), ocenka integer check (ocenka in (0,1,2,3,4,5)) default(0) );
What will the code look like in MySQL?