Professional Documents
Culture Documents
Name Type
Empno Number
Ename Varchar2(10)
Job Varchar2(10)
Mgr Number
Sal Number
a. Add a column commission with domain to the Employee table.
b. Insert any five records into the table.
c. Update the column details of job
2.2 create table emp with attributes (eidnumber,ename varchar2(10),age number,salary number);
a. Count number of employee names from employee table.
b. Display the Sum of age employee table.
c. Find grouped salaries of employees (group by clause).
2.3 Consider the database for a college. Write the query for the following.
Insert at least 5 tuples into each table.
a. List the details of students in the ascending order of date of birth
b. Display the details of students from computer department
c. List the faculties in the descending order of salary
2.4 Consider the database for a banking enterprise. Write the queries for the below questions.
Insert at least 5 tuples in each table
a. Display the branch details
b. List the customers of ‘Mumbai’ city
c. List the male customers of ‘Kolkata’ city
3.2 Write a PL/SQL program to SWAP two numbers with and without using temporary variables.
3.2 Write a PL/SQL program to print reverse of a number. For example: 1234 print as 4321.