Professional Documents
Culture Documents
DMS ORAL' - Qes
DMS ORAL' - Qes
2) 1. Create table for stud using attributes Rollno, studname, percentage)apply primary key for rollno
and check constraint on percentage should not greater than 100.
2. Change the stud table structure by adding column city.
3. Increase the size by 10 of studname column.
4) Create a tables EMPLOYEE and DEPARTMENT with following schema by applying Primary key and
Foreign key: Emp(empno,empname,salary.phno) Dept(deptno,deptname, location.job_id)
6) Create table EMPLOYEE and DEPARTMENT Emp(Emp_no, E_name,, Dept_no, Dept_name, Job_id,
Salary,hiredate). Dept(E_name,Dept_no,Location,job_id);
Execute and write output of the following queries
i. Select * from Emp union Select * from Dept; ií. Select * from Emp intersect Select * from Dept;
iii. Select * from Emp minus Select * from Dept;
iv. Select * from Emp where salary Emp_no between 100 and 200; v. Select * from Emp where name
IN('Shreyas');
7) Create table EMPLOYEE and DEPARTMENT Emp(Emp_no, E_name,, Dept_no, Dept_name, Job_id,
Salary hiredate). Dept(E_name. Dept_no, Location);
8) Create table EMPLOYEE and DEPARTMENT Emp(Emp_no, E_name,, Dept_no, Dept_name, Job_id,
Salary hiredate). Dept(E_name. Dept_no, Location);
14)
1.Write a PL/SQL program to accept three numbers and display the largest number.
2. Write a PL/SQL program to display even numbers between 1 to 100.
15)
1. Write a PL/SQL program to count No. of row in the table using SQL% rowcount.
2. Write a PL/SQL program to display numbers between 50 to 60 in reverse order.
16)
1. Write a PL/SQL program to display ZERO_DIVIDE Error Exception.
2. Write a PL/SQL program to display NO_DATA_FOUND Exception.