0% found this document useful (0 votes)
14 views1 page

CLASS11 ch9 Assign2

Ip ch class 11 assignment

Uploaded by

baudhikg
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)
14 views1 page

CLASS11 ch9 Assign2

Ip ch class 11 assignment

Uploaded by

baudhikg
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/ 1

CLASS11: INFORMATICS PRACTICES(065)

CH 9 :SQL – Assignment-2

1. Create the table given below with proper constraints and insert records, write command in SQL for the
following :
Table : FLIGHT
Flight_No Origin Destination Seats FlightDate Rate
1005 Varanasi Nepal 275 12-Dec-07 3000
2785 Delhi Kerala 290 17-Jan-08 5500
6587 Mumbai Varanasi 435 19-Feb-08 5000
1265 Varanasi Nepal 200 02-Jan-08 5400
4457 Delhi Lucknow 150 22-Feb-08 4500
6856 Varanasi Mumbai 180 03-Mar-08 6000
i) To display Flight flying between Varanasi Origin and Nepal as destination.
ii) To display the different Origin of Flights.
iii) To display list of flights in descending order of Rate.
iv) To display flight details of the flight whose flightdate is after Jan 2008.
v) To display details of Lucknow as destination.

2. Create the table given below with proper constraints and insert records in the table, STUDENT given
below to solve the queries :
Table: STUDENT
No Name Stipend Stream AvgMark Grade Class
1 Karan 400.00 Medical 78.5 B 12B
2 Divakar 450.00 Commerce 89.2 A 11C
3 Divya 300.00 Commerce 68.6 C 12C
4 Arun 350.00 Humanities 73.1 B 12C
5 Sabina 500.00 Nonmedical 90.6 A 11A
6 John 400.00 Medical 75.4 B 12B
i) To display students details of Medical stream
ii) to display students getting avgmark between 80.0 and 95.9.
iii) To display the different stream of subjects.
iv) To display list of students in descending order of stipend.
v) To display students details of class 12.
vi) To display students details of class 12 HAVING grade LIKE ‘A’;

You might also like