SQL Project
SQL Project
Description
Consider an institution that wants to store the students’ details and their marks records to track their
progress. The database would contain the students’ information, marks of the students with the rank
that can be viewed, updated, and evaluated for the performance evaluation.
Objective:
The design of the database helps to easily retrieve thousands of student records.
Task to be performed:
Write a query to create a students table with appropriate data types for student id, student first
name, student last name, class, and age where the student last name, student first name, and
student id should be a NOT NULL constraint, and the student id should be in a primary key.
Solution:
Use Institution;
class Int,
Age Int);
Write a query to create a marksheet table that includes score, year, ranking, class, and student id.
Solution:
Use Institution;
CREATE TABLE Marksheet (Score INT, Year Int, Ranking VARCHAR (20), Class INT, Student_Id INT);
Solution:
INSERT INTO Students (StudentID, StudentFirstName, StudentLastName, Class, Age)