0% found this document useful (0 votes)
2 views5 pages

SQL Solutions

The document outlines a series of SQL tasks for two questions involving database creation, data insertion, and various data retrieval and manipulation operations. Key tasks include displaying data in ascending order, fetching specific records based on conditions, updating addresses, deleting records, and counting records based on criteria. The tasks are structured to enhance understanding of SQL commands and database management.

Uploaded by

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

SQL Solutions

The document outlines a series of SQL tasks for two questions involving database creation, data insertion, and various data retrieval and manipulation operations. Key tasks include displaying data in ascending order, fetching specific records based on conditions, updating addresses, deleting records, and counting records based on criteria. The tasks are structured to enhance understanding of SQL commands and database management.

Uploaded by

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

Q1 - SQL

I. Creation of a database and the tables.

I. Insertion of records in both tables.


II. Display the data of StuLibrary table in ascending order of BookID

III. Fetch StudentID, BookID, StuName of the book issued most recently as per the
records.

IV. Display StuName of those who belong to Delhi region as per the StuAddress

V. Update the StuAddress of StuID 4 to any other address.

VI. Delete records which belong to StuID 3.

VII. Display the count of records with Issued_date in the month of January.
Q2 - SQL

I. Creation of a database and the tables.

I. Insertion of records in both tables.


II. Display the data of the Medals table in ascending order of Medals count.

III. Fetch AthleteID of those who have received more than 5 medals.

IV. Display the sports-wise total number of medals won from Medals table.

V. Update the Sport of AthleteID 104 to any other sport.

VI. Delete records which belong to Denmark.


VII. Display the AthleteID, Name, Sport of those whose Country begin with letter ‘U’.

You might also like