0% found this document useful (0 votes)
8 views3 pages

School Ranking Analysis Problem Statement

Uploaded by

Sakshi Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views3 pages

School Ranking Analysis Problem Statement

Uploaded by

Sakshi Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

SQL Training

Lesson-End Project Problem Statement


School Ranking Analysis

Problem scenario:

You are a database administrator in an institution, and you have been asked
to store the students’ details and their marks to track their progress. The
database helps to view the students’ marks with a rank that can be viewed,
updated, and evaluated to evaluate their performance.

Objective:

The objective is to design a database to retrieve the information of a student


as needed for the records.

Note: Download the student_datasets.csv and marksheet_datasets.csv


files from Course Resources to perform the required tasks

Task to be performed:

1. Write a query to create a students table with the student ID, first
name, last name, class, and age fields and ensure that the last name,
first name, and student ID fields have the NOT NULL constraint and
that the student ID field is a primary key

2. Write a query to create a marksheet table with score, year, ranking,


class, and student ID fields

3. Write a query to insert values into the students and marksheet


tables

4. Write a query to display the student ID and first name of every student
in the students table whose age is greater than or equal to 16 and
whose last name is Kumar

5. Write a query to display the details of every student from the


marksheet table whose score is between 800 and 1000

6. Write a query to increase the score in the marksheet table by five and
create a new score column to display this new score
7. Write a query to display the marksheet table in descending order of
the score

8. Write a query to display the details of every student whose first name
starts with an ‘a’

You might also like