Quantcast
Channel: Go4Expert
Viewing all articles
Browse latest Browse all 1987

How to Tune SQL with IN Subquery with Intersect for Oracle?

$
0
0
Here is an example SQL that retrieves data from EMPLOYEE and DEPARTMENT table with the employee’s grade code in the GRADE table.

SELECT emp_id,
emp_name,
dpt_name​
FROM employee,
department
WHERE emp_dept = dpt_id
AND emp_grade IN (SELECT grd_id
FROM grade
WHERE grd_min_salary < 200000)​
and emp_dept<'D'

Here the...

How to Tune SQL with IN Subquery with Intersect for Oracle?

Viewing all articles
Browse latest Browse all 1987

Trending Articles