select sentence to join different servers tables...
From: nuria (nuriavadillo_at_cbl.es)
Date: 03/17/05
- Next message: Silvio Bierman: "Re: JDBC and ResultSet problem"
- Previous message: Dave Brown: "Please Help..."
- Next in thread: Lee Fesperman: "Re: select sentence to join different servers tables..."
- Reply: Lee Fesperman: "Re: select sentence to join different servers tables..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 17 Mar 2005 09:36:08 -0800
hi
I have an AS400 table and SQL server table and need do a JOIN in a
select, I did this:
SELECT GNORP.COORG, GNORG.ORDES, GNORP.CPAIS, GNPAI.PADES, GNORP.ORV01
FROM ((GNORP GNORP LEFT OUTER JOIN GNORG GNORG ON GNORP.COORG =
GNORG.COORG) LEFT OUTER JOIN SERVIDOR_CBL.GN_3_0.dbo.GNPAI GNPAI ON
GNORP.CPAIS = GNPAI.COPAI) ORDER BY GNORP.COORG, GNORP.CPAIS
in this case "SERVIDOR_CBL.GN_3_0.dbo.GNPAI" I said the
serverName.BDName.Owner.TableName
But give me an error... Anyone know how can I do this??
Thanks in advance...
- Next message: Silvio Bierman: "Re: JDBC and ResultSet problem"
- Previous message: Dave Brown: "Please Help..."
- Next in thread: Lee Fesperman: "Re: select sentence to join different servers tables..."
- Reply: Lee Fesperman: "Re: select sentence to join different servers tables..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|