Professional Documents
Culture Documents
Shashwat Arya - 0201bca153 - Lab On Oracle File
Shashwat Arya - 0201bca153 - Lab On Oracle File
Shashwat Arya - 0201bca153 - Lab On Oracle File
PRACTICAL FILE
ASSIGNMENT – 1
Q.1 create table emp1(
empno number(4,0),
ename varchar2(10),
job varchar2(9),
mgr number(4,0),
hiredate date,
sal number(7,2),
comm number(7,2),
deptno number(2,0));
(ii) Display the bill details where total amount is greater than 6000.
(iii) Display the bill details where total amount is less than 500
II. To perform queries for the table “BILL” using various DDL,DML and DQL
commands.
(i) Add a column „number_of_items‟ to BILL table.
Queries performed:
(i) Display all the bill details of ‟24-jan-12‟
(ii) Display the bill details where total amount is greater than 6000.
(iii) Display the bill details where total amount is less than 500
To perform queries for the table “BILL” using various DDL,DML and DQL
commands.
Queries:
deptno number(2,0),
dname varchar2(14),
loc varchar2(13),
)
Statement 4
Insert a row into DEPT table by column position.
Statement 5
insert into dept
Statement 6
insert into dept
2. Write an SQL query to print all Worker details from the Worker table order
by FIRST_NAME Ascending and DEPARTMENT Descending.
3. Write an SQL query to print details for Workers with the first name as
“Vipul” and “Satish” from Worker table.
5. Write an SQL query to print details of the Workers whose FIRST_NAME contains
‘a’.
6. Write an SQL query to print details of the Workers whose FIRST_NAME ends
with ‘h’ and contains six alphabets.