0% found this document useful (0 votes)
14 views14 pages

CS Practical File XII

Uploaded by

harshcooks
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)
14 views14 pages

CS Practical File XII

Uploaded by

harshcooks
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/ 14

Class XII - Aquila

Harsh Sharma
CS practical File

CS Practical File
Q1) Write SQL commands for the following on the basis of given table STUDENT:
Creating Table

Inserting Values

Viewing Table
Query 1: Display names of the students who are getting a grade ‘C’ in either GAME or
SUPW.

Query 2: Display the different games offered in the school

Query 3: Display the SUPW taken up by the students, whose name starts with ‘A’.
Q2) Write SQL commands for the following on the basis of given table STUDENT:
Creating Table

Inserting Values

Viewing Table
Query 1: Display the names of the students who have grade ‘C’ in either Game1 or Game2 or
both.

Query 2: Display the names of the students who have same game for both Game1 and
Game2.

Query 3: Display the games taken up by the students whose names start with ‘A’.
Q3) Write SQL commands for the following on the basis of given table CLUB:
Creating Table

Inserting Values

Viewing Table
Query 1: To show all the information about the swimming coaches in the club.

Query 2: To list names of all coaches with their Date of Appointment(DateOfApp) in


descending order.

Query 3: To display a report showing coachname, pay and bonus(15% of pay) for all the
coaches.
Q4) Write SQL commands for the following on the basis of given table STUDENT1:
Creating Table

Inserting Values

Viewing Table
Query1: Select all the Non-Medical stream students from STUDENT1.

Query2: List the names of the students who are in class 12 sorted by Stipend.

Query3: List all students sorted by AvgMark in descending order.


Query4: Display a report, listing Name, Stipend, Stream, and amount of stipend received in a
year assuming that the Stipend is paid every month.

1)
Q5) Write SQL commands for the following on the basis of given table MOV:
Creating Table

Inserting Values

Viewing Table
Query1: Display a list of all movies with Price over 20 and sorted by Price.

Query2: Display all the movies sorted by Qty in decreasing order.

Query3: Display a report listing a movie number, current value, and replacement value for
each movie in the above table. Calculate the replacement value for all movies as: Qty * Price
* 1.15
Q6) Write SQL commands for the following on the basis of given table TEACHER:
Creating Table

Inserting Values

Viewing Table
Query1: To show all information about the teachers of History department.

Query2: To list the names of all female teachers who are in Hindi department.

Query3: To list the names of all the teachers with their date of joining in ascending order.

You might also like