You are on page 1of 3

EXPERIMENT NO.

- 02
1 ) INSERT AT LEAST 10 ROWS IN THE TABLE

insert into employee values (01, 'ramesh', 'panvel', 1231758346, 201,'IT', 'xyz',
5000, to_date('2012-12-12', 'yyyy-mm-dd'))

insert into employee values (02, 'raj', 'kharghar', 2231758346, 202,'IT', 'xyz',
10000, to_date('2012-12-15', 'yyyy-mm-dd'))

insert into employee values (03, 'rohan', 'kamothe', 4231758346, 203,'ECS', 'xyz',
12000, to_date('2012-12-17', 'yyyy-mm-dd'))

insert into employee values (04, 'AKASH', 'AIROLI', 6631758346, 204,'ECS', 'xyz',
20000, to_date('2012-12-19', 'yyyy-mm-dd'))

insert into employee values (05, 'avinash', 'sanpada', 2231758346, 205,'IT', 'xyz',
22000, to_date('2012-12-21', 'yyyy-mm-dd'))

insert into employee values (06, 'nikhil', 'vashi', 2231758346, 206,'IT', 'xyz',
25000, to_date('2012-12-23', 'yyyy-mm-dd'))

insert into employee values (07, 'ryan', 'pune', 7561758346, 207,'CoMP', 'xyz', 28000,
to_date('2012-12-25', 'yyyy-mm-dd'))

insert into employee values (08, 'GARGI', 'mumbai', 8831758346, 208,'IT', 'xyz',
30000, to_date('2012-12-26', 'yyyy-mm-dd'))

insert into employee values (09, 'ADITYA', 'kharghar', 2231758346, 209,'ECS', 'xyz',
10000, to_date('2012-12-28', 'yyyy-mm-dd'))

insert into employee values (10, 'MIDHUN', 'kharghar', 2231758346, 210,'ECS', 'xyz',
10000, to_date('2012-12-30', 'yyyy-mm-dd'))

2 ) DISPLAY ALL THE INFORMATION OF EMP TABLE

select * from employee


3)DISPLAY ALL THE RECORD OF EMPLOYEE WHO WORKS IN DEPT-202

select * from employee where dept_no=202

4)update employee set e_address='virar' where e_no=3

5)select * from employee where dept_name='IT'

You might also like