Professional Documents
Culture Documents
Untitled
Untitled
Car
Regno model year
R901 eritiga 2010
R902 polo 2012
R903 vagner 2014
R904 alto 2016
R905 ciaz 2017
Accident
Report_no accdate location
1 13-feb-12 madras
2 4-oct-13 mumbai
3 7-dec-14 delhi
4 18-aug-12 mysore
Owner
Dirver_id regno
D101 r901
D102 r902
D103 r903
D104 r904
D105 r905
Participated
Driver_id regno report_no damage_amtt
D101 r901 1 2000
D102 r902 2 1000
D103 r903 3 3000
D104 r904 4 5000
queries
1.update participated set damage_amt=5000 where
participated.report_no between 1 and 3 and
participated.regno in(select participated .regno from
car,participated where car.regno=prtcipated.regno);
2.insert into accident values(7,1-jan-2017,’kolkatta’);
3.select count(*) from person,accident,participated where
Person.driver_id=participated.driver_id and
accident .report_no=participated.report_no and
accident.accdate like ‘%12’;
4.select count (*) from car,accident,participated where
Car.regno=participated.regno
andaccident.report_no=participated.report_no and
car.model=’polo’;
Lab program 2
Student
Regno name bdate
111 geeta 5-jan-98
222 reeta 7-jan-99
333 pooja 8-aug-98
444 rachana 22-oct-99
555 aishu 11-apr-98
Course
Courseno cname dept
10 pme cs
20 cbz zoology
30 pmc cs
40 grth maths
50 pms stat
60 pmr cs
Enrol
Regno courseno sem marks
111 10 5 56
222 20 2 88
111 20 3 87
444 10 3 51
222 30 2 59
Text
Bk_isbn bk_title publisher author
1001 java nextbook balaguruswamy
2002 or pearson kalavathy
3003 let us see next book kanitkar
4004 cs mc.hill tenanbaum
5005 dbms pearson nand gopalan
5005 unix oxford sommerville
7007 operating oxford balagi
Book_adopt
Courseno sem bk_isbn
10 3 1001
30 4 1001
20 7 2002
10 5 3003
20 1 4004
10 3 6006
60 4 1001