![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi all... I need to do the following: I have a table in SQL Server 2000 that has some data. One of them is a company's code. To retrieve that data I have this query: SELECT CODEMPLEADOR FROM TARJETA T, EMPRESA E WHERE TAR_ESTADO = 'I' AND E.EMP_RUT = T.EMPRESA_RUT Using those codes I have to query an Oracle database using this query: select distinct c.numid, c.dvid, t.nomter, t.apepater, t.apemater, t.apeter from poliza p, cliente c, tercero t where p.stspol = 'ACT' and p.codempleador = :EMPLEADOR and p.codcli = c.codcli and t.numid = c.numid and t.dvid = c.dvid and t.tipoid = c.tipoid where :EMPLEADOR is each code returned by he SQL Server query. Finally, I have to insert the data returned by the Oracle query into other SQL Server table. Graphically, I have to do this: SQL SERVER SELECT QUERY ---> ORACLE SELECT QUERY ---> SQL SERVER INSERT INTO Can I do this using lookup tables or something similar? Thanks a lot in advance Jaime |
#3
| |||
| |||
|
|
Hi all... I need to do the following: I have a table in SQL Server 2000 that has some data. One of them is a company's code. To retrieve that data I have this query: SELECT CODEMPLEADOR FROM TARJETA T, EMPRESA E WHERE TAR_ESTADO = 'I' AND E.EMP_RUT = T.EMPRESA_RUT Using those codes I have to query an Oracle database using this query: select distinct c.numid, c.dvid, t.nomter, t.apepater, t.apemater, t.apeter from poliza p, cliente c, tercero t where p.stspol = 'ACT' and p.codempleador = :EMPLEADOR and p.codcli = c.codcli and t.numid = c.numid and t.dvid = c.dvid and t.tipoid = c.tipoid where :EMPLEADOR is each code returned by he SQL Server query. Finally, I have to insert the data returned by the Oracle query into other SQL Server table. Graphically, I have to do this: SQL SERVER SELECT QUERY ---> ORACLE SELECT QUERY ---> SQL SERVER INSERT INTO Can I do this using lookup tables or something similar? Thanks a lot in advance Jaime |
![]() |
| Thread Tools | |
| Display Modes | |
| |