Retrieve data from two tables

How to retrieve data from two tables of different servers

Questions by sriram.bethe

Showing Answers 1 - 9 of 9 Answers

Use DB link to get data from 2 different DB on 2 different server.

For example, if there are 2 DB, DB1 and DB2

Then create a link with name “DB2” in DB1.
After that you can query DB2 tables

In DB1, you can do

Select * from EMP e, dept@DB2 d

Where e.deptno = d.deptno;

  Was this answer useful?  Yes

Sujaya

  • Jun 8th, 2012
 

SELECT Ename, DeptNo, Sal, Emp.DeptNo, Dept.Dname, Dept.Loc, Dept FROM
Emp, Dept
WHERE Emp.DeptNo = Dept.DeptNo;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions