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
GROUP BY emp_dept
Here the following is...
How to Tune SQL with DB Link for Oracle I?
SELECT Avg(emp_salary),
emp_dept
FROM employee@richdb
WHERE emp_dept IN (SELECT dpt_id
FROM department
WHERE dpt_name LIKE 'D%')
WHERE dpt_name LIKE 'D%')
Here the following is...
How to Tune SQL with DB Link for Oracle I?