Professional Documents
Culture Documents
2.
insert into person values ('&driverid','&name','&address');.
insert into car values('®no','&model','&year')
insert into participated values('&driverid','®no','&reportnumber','&damageamount');
insert into accident values('&reportnumber','&accddate','&location')
(3)a.
update participated
set damageamount=25000
where regno='ka01q2222' and reportnumber=22;
(3)b
insert into person values ('&driverid','&name','&address');.
insert into owns values('&driverid','®no')
insert into participated values('&driverid','®no','&reportnumber','&damageamount');
insert into accident values('&reportnumber','&accddate','&location')
(4)
select distinct count(*)"total no of pepole involved"
from accident a
1
Niranjan das
(5)
select count(*)"no of accidents"
from car c,accident a,participated p
where c.regno=p.regno and p.reportnumber=a.reportnumber and model='&model';