SELECT YB2.ENTRY010 , JH1.ENTRY023, YB2.ENTRY011, JH1.ENTRY025, YB3.ENTRY010 as a, JH1.ENTRY026, YB3.ENTRY001+YB3.ENTRY019+YB3.ENTRY028+YB3.ENTRY064, JH1.ENTRY024, YB2.ENTRY030, JH1.ENTRY022/100, ZX1.ENTRY014/100, ZX1.ENTRY015, XB1.ENTRY025 FROM DATA_DATE YB2
LEFT OUTER JOIN
DATA_DATE JH1 ON JH1.unit= YB2.unit
LEFT OUTER JOIN
DATA_DATE YB3 ON YB3.UNIT = YB2.UNIT AND YB3.D18_DATE = YB2.D18_DATE
LEFT OUTER JOIN
DATA_DATE ZX1 ON ZX1.UNIT = YB2.UNIT AND ZX1.D18_DATE = YB2.D18_DATE
LEFT OUTER JOIN
DATA_DATE XB1 ON XB1.UNIT = YB2.UNIT AND XB1.D18_DATE = YB2.D18_DATE
WHERE YB2.D18_DATE='20090225'
AND YB2.REPORT_NAME='YB2'
AND YB2.UNIT='LXD'
AND JH1.report_name='JH1'
and JH1.D18_DATE='JH200902'
and YB3.REPORT_NAME='YB3'
AND ZX1.REPORT_NAME ='ZX1'
AND XB1.REPORT_NAME = 'XB1'