Professional Documents
Culture Documents
Test BD Avancee
Test BD Avancee
4)select nom , prenom from abonnee where type ='�tudiant' and num_abonnee in
7) select distinct num_abonnee from emprunter e where not exists (select cote from
livre l where not exists (select * from emprunter emp where emp.cote=l.cote and
emp.num_abonnee = e.num_abonnee))
create or replace trigger verifMaj before insert on emprunter for each row
begin
if (:new.date_emprunt<sysdate) then
raise_application_error(-20001,'date emprunt erron�');
endif;
end verifMaj
begin
if(:new.date_emprunt-sysdate<0) then
raise application error(-20001,'date emprunt erron�');
end if;
end verifEmp;