You are on page 1of 3

Sara 1 1

Ram 2 2

Ram 2 3

Deepak 3 4

Suresh 4 5

Riya 5 6

Manoj 6 7

EMP_ID
EMP_NAME
DEPT_ID
DOJ
Emp Sal

1
Ashish
1
12-Jan-04
40000

2
Mark
2
01-Dec-08
22000

3
Joe
1
01-Apr-21
50000

4
Veer
2
01-Nov-20
30000
5
Akbar
3
30-Jun-19
60000

6
Julie
3
19-May-16
30000

7
Ketty
4
30-Jun-17
25000

8
Rachel
4
28-Feb-22
30000

9
Amit
1
30-Jun-16
48000

Dept_ID
Dept_Name

1
RND

2
Finance

3
HR

4
QA

details of employee who are more than 3 yrs exp and there dept name??

select *,d.dept_name from employee e inner join dept d on e.DEPT_ID =d.Dept_ID


where extract(yy,DOJ)>3;

Write a Query to display the third highest salary of an employee?


select Emp Sal from employee where Emp Sal<=(Select Emp Sal from employee where Emp
Sal <=(Select Emp Sal from employee));

select Dense rank(3) Emp Sal


from employee where(

select Emp Sal from employee)


as result

source qualifier --->only relatiomal files ,we can use filter init

filter transformation-----> any files including relational files. so after having


source also ,we have to use filter transformation

You might also like