As the new database manager at a school, you will need to maintain a SQL database that contains a list of students. Each student has an ID, first name, last name, and birth date. Given the following SQL code with some missing parts (represented as ▭), your task is to fill in the blanks to define the correct SQL data types for the Students table's columns and then add a new student to this table with a SELECT statement returning all the students.
Basic data types in SQL
Managing a students database
Report a typo
Fill in the gaps with the relevant elements
Students (
StudentID PRIMARY KEY,
FirstName (50),
LastName VARCHAR(50),
BirthDate
);
INSERT INTO Students (StudentID, FirstName, LastName, BirthDate)
VALUES (1, 'John', 'Doe', '1990-12-01');
SELECT * FROM Students;Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.