0% found this document useful (0 votes)
3 views2 pages

Adobe Scan 25 Aug 2025

The document contains SQL queries and commands related to various tables including VACCINATION_DATA, STUDENT, SPORTS, and CLUB. It outlines tasks such as selecting data based on conditions, counting distinct values, and displaying specific information about students and coaches. Additionally, it includes commands for retrieving information about students' grades, games, and stipend details.

Uploaded by

shashank singh
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)
3 views2 pages

Adobe Scan 25 Aug 2025

The document contains SQL queries and commands related to various tables including VACCINATION_DATA, STUDENT, SPORTS, and CLUB. It outlines tasks such as selecting data based on conditions, counting distinct values, and displaying specific information about students and coaches. Additionally, it includes commands for retrieving information about students' grades, games, and stipend details.

Uploaded by

shashank singh
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/ 2

w u o t p t -table : VACCINATION_DATA

VID Dose1 Dosez City


Name Age Delhi
101 2021-12-25 2022-01-31
Jenny 27
102 2021-07-14 2021-10-14 Mumbai
Harjot 55
103 Srikanth 43 2021-04-18 2021-07-20 Delhi
104 Gazala 75 2021-07-31 NULL Kolkata
105 Shiksha 32 2022-01-01 NULL Mumbai
(a)
(b)
SELECT Name,Age FROM VACCINATION_ DATA WHERE DOse2 IS NOT NULL AND Age >40 ;
SELECT DISTINCT City FROM VACCINATION DATA;
(c)
SELECT MAX (Dose1), MIN (Dose2) FROM VACCINATION_DATA J

10. Write
SQL commands for the following on the basis of given table STUDENT:
Table : STUDENT
StudentNo. Class
10 Name GAME Grade SUPWGradez
7
Sameer Cricket
11 B Photography A
12
7
Sujit Tennis A Gardening C
Kamal Swimming
13
Veena Tennis
B
Photography B
14
Archana Basket Ball
Cooking A
15
10
A
A Literature
Arpit Cricket
() Display the names of the
A
Gardening
students who are getting d grade 'C in
() Display the different games either GAME or SUPW.
(iii) Display the SUPW taken
offered in the school.
up by the students, whose
11. Write SQL commands for name starts with 'A'.
the following on the basis of given
table SPORTS :
Table : SPORTS
StudentNo. Class Name Gamei Gradet Gamez
10 Sameer Cricket Gradez
B
11 8 Sujit Tennis A
Swimming A
12 7 Kamal
Swimming B
Skating
13 7 Venna Tennis
Football B
Archana
Tennis
14 9 Basketball A
A
Cricket
15 10 Arpit Cricket A
A
Athletics
) Display the names of the students wio tave
grade in either Gamel or Game2 or both
() Display the names of the students wno nave same game for both
Gamel andGame
(im Display the games taken up by the sruaents, whose name starts with A
Consider the table CLUB given below
and orite the output of the SQL queries that follow :
Table : CLUB (CBSE SP 24)
CID CNAME AGE GENDER
5246 SPORTS PAY
AMRITA 35 FEMALE DOAPP
4637 CHESS 900
SHYAM 37 MALE CRICKET 2006-03-27
1245 1300
MEENA 23 FEMALE VOLLEYBALL
2004-04-15
1622 1000
AMRIT 28 MALE KARATE
2007-06-18
1256 AMINA 1000 2007-09-05
36 FEMALE CHESS
1720 1100 2003-08-15
MANJU 33 FEMALE KARATE
2321 1250 2004-04-10
VIRAT 35 MALE CRICKET 1050 2005-04-30
() SELECT COUNT (DISTINCT
SPORTS) FROMCLUB;
(ii) SELECT CNAME, SPORTS FROM
CLUB
WHERE DOAPP<" 2006-04-30" AND
CNAME LIKE "%NA";
(i) SELECT CNAME, AGE, PAY FROM
CLUB
WHERE GENDER= "MALE" AND PAY BETWE
EN 1000 AND 1200;

12. Write SQ commands for


the following cn the basis of given
table CLUB :
Table : CLUB
COACHID COACHNAMEAGE
KUKREJA
GPORSDATOFARP PAY5DX
35 KARATE 27/03/1996 1000
2 RAVINA 34 KARATE 20/01/1998 1200 F
3. KARAN 34 SQUASH 19/02/1998 2000 M
4. TARUN 33 BASKETBALL 01/01/1998 1500 M
5. ZUBIN 36 SWIMMING 12/01/1998 750 M
6. KETAKI 36 SWIMMING 24/02/1998 800
7. ANKITA SQUASH
39 20/02/1998 2200 P
8. ZAREEN 37 KARATE 22/02/1998 1100 F
9. KUSH 41 SWIMMING 13/01/1998 900 M
10. SHAILYA 37 BASKETBALL 19/02/1998 1700 M

(a) To show all information about the swimming coaches in the club.
(b) To list names of all coaches with their date of appointment (DATOFAPP) in descending order.
(c) To display a report, showing coachname, pay, age and bonus (15% of pay) for all the coaches.
13. Write SQL commands for the following on the basis of given table STUDENT1 :
Table : STUDENTI
NO Name Stipend streariAvgMark Grade Class
Karan 400.00 Medical 78.5 B 12B
2 Divakar 450.00 Commerce 89.2 A 11C
Divya 300.00 Commerce 68.6 12C
Arun 350.00 Humanities 73.1 12C
Sabina 500.00 Nonmedical 90.6 11A
6 John 400.00 Medical 75.4 B 12B
Robert 250.00 Humanities 64.4 11A
Rubina 450.00 Nonmedical 88.5 A 12A
9 Vikas 500.00 Nonmedical 92.0 A 12A
10 Mohan 300.00 Commerce 67.5 12C

(a) Select all the Nonmedical stream students from STUDENTi.


(6) List the names of those students who are in class 12 sorted by Sipend.
(c) Listall students sorted by AvgMark in descending order
(a) Display areport, listing Name, Stipend, Stream and amount of stipend received in a year
assuming that the Stipend is paid every month.

You might also like