Académique Documents
Professionnel Documents
Culture Documents
(a) To show all information of students where capacity is more than the no of student in
order of rtno.
(b) To show area_covered for buses more than 20 km., but charges less than 80000.
(c) To show the area covered by Bhalla Co. and kisan tours
(d) To show the names of all the transporters without repeating their names.
(e) To show all the bus routes number where the distance is less than 30.
(f) To show the area whose names end with ‘r’ in decreasing order of the area covered.
(g) To show rtno, area_covered and average cost per student for all routes where average
cost per student is - charges/noofstudents
(h) To show the number of areas covered by all the bus routes
(i) To show the number of area covered by each transporter.
(j) To show the maximum capacity of a bus
(k) To show transporter wise total number of students traveling.
(l) Add new record with data: (11, “ Moti bagh”,35,32,10,” kisan tours “, 35000)
(m) Give the output considering the original relation as given :
(i) select sum(distance) from schoolbus where transporter= “ Yadav Co.”;
(ii) select min (noofstudents) from schoolbus;
(iii) select avg(charges) from schoolbus where transporter= “Anand travels”;
(iv) select distinct transporter from schoolbus ;
(v) select count(distinct transporter) from schoolbus ;
(vi) select count(*) from schoolbus ;
(vii) select transporter, count(*) from schoolbus group by transporter ;
(viii) select transporter, max(charges) from schoolbus group by transporter ;