Cs Prac File
Cs Prac File
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 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:
Viewing Table
Query 1: To show all the information about the swimming coaches in the club.
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.
Creating Table
Inserting Values
Viewing Table
Query1: Display a list of all movies with Price over 20 and sorted by Price.
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.