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

How to Tune SQL with DB Link for Oracle I?

$
0
0
Here is an example SQL query used to calculate the average salary of employees on the remote database @richdb in each department in the local database whose department name starts with the letter "D".

SELECT Avg(emp_salary),
emp_dept
FROM employee@richdb
WHERE emp_dept IN (SELECT dpt_id
FROM department
WHERE dpt_name LIKE 'D%')​
GROUP BY emp_dept

Here the following is...

How to Tune SQL with DB Link for Oracle I?

Viewing all articles
Browse latest Browse all 1987

Trending Articles