1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| set serveroutput on
declare
numSalle varchar2(7);
numPoste varchar2(7);
nomLogiciel varchar2(20);
dateInstallation DATE;
begin
select S.nSalle,P.nPoste,L.nomLog,max(I.dateIns) into numSalle,numPoste,nomLogiciel,
dateInstallation from Salle S,Poste P,Logiciel L,Installer I where P.nSalle=S.nSalle
and I.nPoste=P.nPoste and L.dateAch=dateInstallation;
dbms_output.put_line('dernière installation en salle: '||numSalle||'en date du '
||dateInstallation||' Poste: '||numPoste||' Logiciel: '||nomLogiciel||'en date
du '||dateInstallation);
end;
/ |
Partager