Professional Documents
Culture Documents
C2:
set SERVEROUTPUT ON;
delcare
cursor C is select nom,ville from pilote where sal >2500;
begin
for L in C Pilote Loop
DBMS_OUTPUT.PUT_LINE('nom: '||L.nom||' ville : '||L.ville);
end loop;
End;
C3:=C1
C4:
set SERVEROUTPUT ON;
declare
cursor C(psal Pilote.sal%type,tc pilote.comm/type) is select nom,embauche from
pilote where sal > psal and comm <(tc*sal);
// cursor C(psal Pilote.sal%type,tc pilote.comm/type) is select
nom,embauche from pilote where sal > 25000 and comm <(0,2*sal);
begin
open C(25000,0,2)// open C
for L in C Pilote Loop
DBMS_OUTPUT.PUT_LINE('nom: '||L.nom||' embauche : '||L.embauche);
end loop;
End;
C5:
D1:
D2:
D3:
create view dervol
as
select avion,max(datevol)as der_vol from affectation group by avion;
D4:
D5: