CS6312 Set1
CS6312 Set1
(10+20+10=40) marks
(15) marks
Queries (i-ii)
Query (iii)
(15) marks
(20) marks
(20) marks
(15 x 4=60) marks
(20) marks
(20) marks
(15 x 4=60) marks
Marks:
Table creation and Data Insertion
(20) marks
(15) marks
Queries (i-iv)
(15) marks
(15) marks
Queries (i-iii)
PL/SQL program(iv)
(20) marks
Query(v)
(20) marks
(15) marks
(15) marks
Queries (i-iv)
Query(v)
(30) marks
(15) marks
(15) marks
(15 x 2=30) marks
(20x2=40) marks
10. Create the following tables with the mapping given below.
Phone_book(ph_no,name,door_no,street,place).
(i)Display all names along withph_no.
(ii)Add a column pin_no.
(iii)Write a pl/sql program to find the address of a particular customer using functions.
(iv)Write a pl/sql program to find the factorial of a given number using functions.
Marks:
Table creation and Data Insertion
Appropriate Constraints and Data Type
(15) marks
(15) marks
Queries (i-ii)
(20x2=40) marks
11. Create the following tables with the mapping given below.
emp_details (emp_no, emp_name, DOB, address, doj, mobile_no, salary).
(i)Add a column dept_no(department number).
(ii)Drop the column salary by altering the table.
(iii)Rename the table asEmployee.
(iv) Write a PL/SQL program to find the greatest of 3 numbers.
(v) Design Employee Details Form using Front end tool.
Marks:
Table creation and Data Insertion
(15) marks
(15) marks
(10 x 3=30) marks
PL/SQL program(iv)
(20) marks
Query (v)
(20) marks
12. Create the following table with the mapping given below.
Customer (Cust_id, Cust_name, Addr, ph_no,pan_no).
(i)Delete the row where cust_name=NANCY.
(ii)Update the addr where cust_name=MATHIK.
(iii)Display the details of a customer named LITHUANA.
(iv) Write a pl/sql program to swap two numbers.
(v) Write a pl/sql program to find the summation of odd numbers using for loop.
Marks:
Table creation and Data Insertion
Appropriate Constraints and Data Type
Queries (i-iii)
PL/SQL program (iv-v)
(15) marks
(15) marks
(10 x 3=30) marks
(20x2=40) marks
13. Create the following table with the mapping given below.
book(book_name,author_name,price,quantity).
(i) write a query to update the quantity by double in the table book.
(ii)List all the book_namewhose price is greater than Rs.400.
(iii)Retrieve the list of author_name whose first letter is a along with the book_name and price.
(iv) Write a pl/sql program to swap two numbers.
(v) Write a pl/sql program to check whether the given number is prime or not.
Marks:
Table creation and Data Insertion
Appropriate Constraints and Data Type
(15) marks
(15) marks
Queries (i-iii)
(20x2=40) marks
14. Create the following table with the mapping given below.
a. stu_details (reg_no, stu_name, DOB, address, city)
b. mark_details (reg_no, mark1, mark2, mark3, total)
(i) Find the name of the student whose reg_no is107.
(ii)Display the details of a particular student whose name is MATHU.
(iii)Rename the table mark_details as academics.
(iv)Write a pl/sql program to find the sum &avg marks of all the student using procedures.
(v)Write a pl/sql program to check whether the given number is prime or not.
Marks:
Table creation and Data Insertion
Appropriate Constraints and Data Type
(15) marks
(15) marks
Queries (i-iii)
(20x2=40) marks
15. Create the following tables with the mapping given below.
a. assessment(reg_no,name, mark1, mark2, mark3, total)
b.dept_details (dept_no, dept_name, location).
(i) Using alter command drop the column location from the table dept_details.
(ii) Display all dept_name along withdept_no.
(iii)Drop the table dept_details.
(iv)Write a pl/sql program to find the sum &avg marks of all the student using procedures.
(v)Design a Report for Student Details.
Marks:
Table creation and Data Insertion
(15) marks
(15) marks
Queries (i-iii)
PL/SQL program(iv)
(20) marks
Query (v)
(20) marks
16. Create the following tables with the mapping given below.
a. emp_details (emp_no, emp_name, DOB, address, doj, mobile_no, dept_no, salary).
b. dept_details (dept_no, dept_name, location).
(i)Select dept_no from dept_details and not in emp_details using both the tables.
(ii)Display the structure of the table emp_details.
(iii)Display the emp_namegetting highest salary
(iv)Creating Trigger On Table Employ For Not Allowing Insert/Update/Delete Operations On
Friday.
(v)Design and implement payroll system to insert data's in DB and delete Data from DB using VB
as front end and Ms-Access as back end.
Marks:
Table creation and Data Insertion
(15) marks
Appropriate Constraints and Data Type
(15) marks
Queries (i-iii)
(10 x 3=30) marks
Trigger(iv)
(20) marks
DB,VB&Ms-Access(v)
(20) marks
(15) marks
(15) marks
Queries (i)
(10) marks
Trigger(ii)
(20) marks
PL/SQL program(iii)
(20) marks
DB,VB&Ms-Access(iv)
(20) marks
18. Create the following table with the mapping given below.
retailor(Cust_id, Cust_name, place, ph_no,pan_no).
(i)
(ii)
(iii)
(iv)
(v)
Marks:
Table creation and Data Insertion
(15) marks
(15) marks
Queries (i-iii)
Trigger(iv)
Front end tool(v)
(20) marks
(20) marks
19. Create the following table with the mapping given below.
a.Product_master(product_name,purchase_prize,sell_prize,profit,quantity,balance)
b. Customer (Cust_id, Cust_name, Addr, ph_no,pan_no).
(i)Display all the customer names along with their address.
(ii)Drop the table customer.
(iii) Change thesell_price to 5000&purchase_price amount to 4000 for any one of the product in
product_master.
(iv) Create a trigger to update the balance in product_ master table whenever transaction table will
have a new entry.
(v) Design and implement payroll system to insert data's in DB and update Datas in DB using
VB/Java as front end and Ms-Access as back end.
Marks:
Table creation and Data Insertion
Appropriate Constraints and Data Type
Queries (i-iii)
Trigger(iv)
MS Access(v)
20. Create the following table with the mapping given below.
a. stu_details (reg_no, stu_name, DOB, address, city)
b. mark_details (reg_no, mark1, mark2, mark3, total)
(15) marks
(15) marks
(10 x 3=30) marks
(20) marks
(20) marks
(i)Find out the name of all students along with their total marks.
(ii)Change the mark1 as 78 from 59 and alter the total for a particular student.
(iii) Delete all the records and its memory space from the table student.
(iv) Write a pl/sql program to check whether the given number is prime or not.
(v) Design Student Details Form using Front end tool.
Marks:
Table creation and Data Insertion
(15) marks
Appropriate Constraints and Data Type
(15) marks
Queries (i-iii)
(10 x 3=30) marks
PL/SQL program (iv)
(20) marks
Front end tool(v)
(20) marks
21. Create the following table with the mapping given below.
a.Administration(employee_salary, development _cost, fund_amount, turn_over,bonus)
b. Emp_details (emp_no, emp_name, DOB, address, doj, mobile_no, dept_no, salary).
(i)Calculate the total and average salary amount of the administration table.
(ii)Display total salary spent for employees.
(iii)Display total fundamount.
(iv)write a pl/sql code block to calculate the area & circumference of a circle
(v)Design Arithmetic Operations Form using Front end tool.
Marks:
Table creation and Data Insertion
Appropriate Constraints and Data Type
Queries (i-iii)
PL/SQL program (iv)
Front end tool(v)
(15) marks
(15) marks
(10 x 3=30) marks
(20) marks
(20) marks
22. Create the following table with the mapping given below.
emp_details (emp_no, emp_name, DOB, address, doj, mobile_no, dept_no, salary).
(i)List all employees which starts with either B or C.
(ii)Display the names and dob of all employees who were born in Feburary.
(iii)List out the employee names whose salary is greater than 15000.
(iv)Write a pl/sql program to find the sum of 1-100 numbers.
(v)Design a Menu Editor in Visual Basic.
Marks:
Table creation and Data Insertion
(15) marks
(15) marks
Queries (i-iii)
(20) marks
Visual basic(v)
(20) marks
(15) marks
(15) marks
Queries (i-iii)
(20) marks
Report(v)
(20) marks
(15) marks
(15) marks
(10 x 3=30) marks
(20) marks
(20) marks
(15) marks
(15) marks
Queries (i-iii)
(20) marks
MS-Access (v)
(20) marks