create or replace procedure p3
is
cursor c1 is select blood_group,qty from Blood_donation_detail ;
begin
for a in c1 loop
dbms_output.put_line(a.blood_group||' '||a.qty);
end loop;
end;
declare
begin
p3;
end;
Q2)
create or replace trigger t22
2 before insert on blood_donation_details
3 for each row
4 begin
5 if(:new.qty<=300) then
6 raise_application_error(-20011,'qty should be enter greater than 300 ml');
7 end if;
8 end;