PLSQL
PLSQL
1. Create a program script that uses a PL/SQL anonymous block to perform the
following: Use a host variable AREA to store the result. Declare a local variable
RADIUS with numeric data type. Declare a constant PI with value 3.14. Assign a
value to the variable RADIUS by using a substitution variable, Calculate area of a
circle by using the formula AREA = P1 * RADIUS * RADIUS .Then, print the
result
2. Write a PL/SQL code block, that will accept an account number from the user.
Check if the user balance is less than the minimum balance , then deduct Rs,100
from the balance . the process is fired on the account master table.
3. Write a PL/SQL block to swap the values of two variables. Print the variables
before and after swapping.
4. Write a PL/SQL block to print all odd numbers between 1 and 10 using a basic
loop.
5. Using a FOR loop, print the values 10 to 1 in reverse order.