ADBMS SHORT LOOK Documents
ADBMS SHORT LOOK Documents
BY,MAXVALUE,MINVALUE,CYCLE/NOCYCLE,CACHE/NOCACHE, ORDER/NOORDER
Practical 3 : WRITE PLSQL BLOCK WITH BASIC PROGRAMMING CONSTRUCT BY
INCLUDING
a) IF..then…Else,if…Elseif….Else…Endif
b) Case statement
Practical 3A : update the salary column of emp_tb1 as salary bonus for ht employee whose
sales is greater than(quota+200) (apply bonus using formula (sales-quota)/4)
Practical 3B: if previous condition is false ten add rs:50 bonus in salary column then print
bonus.
Practical 3C : IF ELSE STATEMENT
Practical 3D : Case Statement
Practical 3F same as Practical 3D.
Practical 3E: Case statement using exception.
Practical 4 : WRITE PL/SQL BLOCK WITH BASIC PROGRAMMING CONSTRUCT FOR
FOLLOWING ITERATIVE STRUCTURE
a) WHILE LOOP
b) FOR-LOOP STRUCTURE
Practical 4A: WRITE PL/SQL block to print 11 to 20 nos. using for loop
Practical 4B: write pl/sql block to display 31 to 41nos. in reverse order
Practical 4C: write pl/sql block to print 1 to 10 using while loop
Practical 5 : write pl/sql block with basic prog construct by including a GOTO to jump out
of a loop and NULL as a statement inside IF.
Practical 5A : GOTO Statement :- pl/sql block to print no from 21 to 31 except 23 (goto)
Practical 5B : NULL Statement:- pl/sql block to demonstrate null.