Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
Practical Internal/External Program List
Subject: DMS
1. Create table student and execute all DDL Commands.
2. Create table employee and execute all DML Commands. Create user also grant and revoke privileges from user. 3. Create table student and add 5 records also create view on student and insert, modify delete record through view. 4. Create table Employee and Department. Also assign primary key in employee table and foreign key in Department table add 5 records in Department table. 5. Create table employee, add 5 records also use like operator 5 different ways to display name of employee. 6. i) Write a PL/SQL program to print numbers from 50 to 60 using for loop. ii) Write a PL/SQL program to display factorial of a given number. 7. i) Write a PL/SQL program to print numbers largest number from three numbers. ii) Write a PL/SQL program to print numbers from 1 to 50 using while loop. 8. Use 5 arithmetic function,5 string functions and date time function 9. I) Write a PL/SQL program to print even number between 1 to 100 numbers. 10. i) Write a program to handle divide by zero exception. ii) Write a PL/SQL program which accept the customer ID from the user if user enters an invalid ID then the exception invalid_id is raised using exception handling. 11. Consider the table Employee( Eid, Ename, Ecity, Ejob, dept, salary) write SQL query for following: i) Insert a record of employee ii) Modify the name of employee “Raj” to “Rajesh. iii) Delete employee details who works in marketing department iv) Display details of employee who works as clerk, salesman or manager. 12. Consider the table Student (name, marks, dept, age, place, phone, birthdate) Write SQL query for following : i) To list students having place as ‘Pune’ or ‘Jalgaon’. ii) To list students having same department (dept) as that of ‘Rachana’. (iii)To change marks of ‘Rahul’ from 81 to 96. (iv) To list student name and marks from ‘Computer’ dept. (v) To list student name who have marks less than 40. (vi) To list students who are not from ‘Mumbai’. 13. Consider the structure for book table as Book-Master (bookid, bookname, author, no_of copies, price) Write down SQL queries for following: (i) Write a command to create Book_master table. (ii) Get authorwise list of all books. (iii) Display all books whose price is between ` 500 & ` 800. (iv) Display all books with details whose name start with ‘D’. (v) Display all books whose price is above ` 700. (vi) Display all books whose number of copies are less than 10. 14. Consider following schema : EMP (empno, deptno, ename, salary, designation, join_date, DOB, dept_location). Write down SQL queries for following: (i) Display employees name & number in decreasing order of salary. (ii) Display employee name & employee number whose designation is Manager. (iii) Display age of employees with ename. (iv) Display total salary of all employees. (v) Display employee names having deptno as 20 and dept_location is Mumbai. (vi) Display name of employee who earned lowest salary. 15. Write a command to create table student (rollno, Stud_name, branch, class, DOB, City, Contact_no) and write down queries for following: (i) Insert one row into the table (ii) Save the data (iii) Insert second row into the table (iv) Undo the insertion of second row (v) Create save point S1. (vi) Insert one row into the table.