1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
SELECT
do0.var16, do0.var7, do0.titulaire,
lnk0.ref_2, lnk01.relation_name1_2,
so0.adresse, so0.loc, so0.reg_code, so0.var38,
dc0.ref, dc0.var1, dc0.var57, dc0.var12, dc0.var6, dc0.var3, dc0.titulaire, dc0.date_creat, dc0.var5
FROM
SYSADM.do0 do0, SYSADM.so0 so0, SYSADM.dc0 dc0, SYSADM.lnk0 lnk0, SYSADM.lnk01 lnk01
WHERE
lnk0.lnk1_nrid=do0.nrid
AND
lnk0.relation_name_nrid = lnk01.nrid
AND
do0.so0_nrid=so0.nrid
AND
so0.nrid=dc0.so0_nrid
UNION
SELECT
do0.var16, do0.var7, do0.titulaire,
lnk0.ref_1, lnk01.relation_name2_1,
so0.adresse, so0.loc, so0.reg_code, so0.var38,
dc0.ref, dc0.var1, dc0.var57, dc0.var12, dc0.var6, dc0.var3, dc0.titulaire, dc0.date_creat, dc0.var5
FROM
SYSADM.do0 do0, SYSADM.so0 so0, SYSADM.dc0 dc0, SYSADM.lnk0 lnk0, SYSADM.lnk01 lnk01
WHERE
lnk0.lnk2_nrid=do0.nrid
AND
lnk0.relation_name_nrid = lnk01.nrid
AND
do0.so0_nrid=so0.nrid
AND
so0.nrid=dc0.so0_nrid |
Partager