Professional Documents
Culture Documents
AIM:
ALGORITHM:
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
Table created.
1 row created.
SQL> /
1 row created.
SQL> /
1 row created.
SQL> /
1 row created.
SQL> /
2 varchar2(4));
Table altered.
741 ramu 89 87 85
852 ramya 56 45 52
963 muthu 85 78 67
456 vijay 85 78 69
965 gowtham 85 78 88
SQL> declare
3 srno student1.rno%type;
4 sname student1.name%type;
5 m1 student1.m1%type;
6 m2 student1.m2%type;
7 m3 student1.m3%type;
9 if studentcur1%isopen then
10 loop
15 if m1>=50 and m2>=50 and m3>=50 then update student1 set res='pass' where
rno=srno;
17 end if;
18 end loop;
19 close studentcur1;
20 commit;
21 end if;
22 end;
23 /