PLSQL Student Implicit Cursor
PLSQL Student Implicit Cursor
No:10
Creation of Students Information table and write PL/SQL Block to find the Total, Average
marks and Results.
number,mark4 number(20));
declare
v_stud1 stud333%rowtype;
grade1 varchar(20);
begin
v_stud1.total:=v_stud1.mark1+v_stud1.mark2+v_stud1.mark3+v_stud1.mark4;
v_stud1.aver:=v_stud1.total/2;
if(v_stud1.aver>90)then
grade1:='A';
elsif (v_stud1.aver>75)then
grade1:='B';
elsif (v_stud1.aver>60)then
grade1:='C';
elsif(v_stud1.aver>50)then
grade1:='D';
else
grade1:='E';
end if;
end loop;
end;
select*from stud333;
Ex.No:11
Program to demonstrate PL/SQL to show the uses of implicit cursor without using any
attribute.