RDBMS Sample Questions
RDBMS Sample Questions
Name Character 20
Basic Numeric 6
Enter the records of at least 10 employees. Use the following information for calculating the details
for the report:
11. Write a program code to calculate the area of a circle for a value of radius varying from 3 to 7. Store the
radius and the corresponding value of calculated area in an empty table named areas with field’s radius
and area.
12. Write a program block to calculate the electricity bill by accepting cust_no and units_consumed.
13. Create a procedure toprint Fibonacci number up to a limit, limit is passed as an argument
14. Create a function to check whether a given number is prime or not
15. create a table stud_mark(regno, sname ,avg_mark)
Insert few records
Write a procedure to display number of students got Distinction, first-class,second class , third class
or failed (90-100 distinction, 75-89firstclass60-74 second class 50-59 Third class below 50 failed)
16. create a table emp_salary(empno,enamedept,salary)
Write a function to return the average salary of a particular department by accepting departmentname
as argument.
17. create a table Student(regno, sname, sub1,sub2,sub3,sub4,sub5,mark_total,avg_mark)
Create a BEFORE INSERT trigger to calculate total mark and average mark and update the
corresponding columns.
18. create table phonebook(pname,mobno)
Create a Trigger to insert the old records from the table phonebook to del_phonebook (pname, mobno,
modfy_date) whenever a record is deleted or updated in the phonebook table.