SELECT YF_YFLB.YFMC AS YFMC,
BQ_TYMX.ZYH,
BQ_TYMX.YPXH,
BQ_TYMX.YPGG,
BQ_TYMX.YFDW,
BQ_TYMX.YFBZ,
BQ_TYMX.YPCD,
BQ_TYMX.YPJG,
BQ_TYMX.YPSL,
BQ_TYMX.YFSB,
BQ_TYMX.SQRQ,
BQ_TYMX.TYRQ,
BQ_TYMX.CZGH,
BQ_TYMX.ZFBL,
BQ_TYMX.YEPB,
BQ_TYMX.TYBQ,
BQ_TYMX.ZFPB,
BQ_TYMX.TJBZ,
‘‘ AS YPMC,
‘‘ AS CDMC,
0 as NEWTF,
BQ_TYMX.YZID,
BQ_TYMX.TYLX,
BQ_TYMX.THBZ
FROM BQ_TYMX,
YF_YFLB
WHERE
BQ_TYMX.TYRQ IS NULL AND
( BQ_TYMX.YFSB=YF_YFLB.YFSB )
BQ_TYMX.ZYH,
BQ_TYMX.YPXH,
BQ_TYMX.YPGG,
BQ_TYMX.YFDW,
BQ_TYMX.YFBZ,
BQ_TYMX.YPCD,
BQ_TYMX.YPJG,
BQ_TYMX.YPSL,
BQ_TYMX.YFSB,
BQ_TYMX.SQRQ,
BQ_TYMX.TYRQ,
BQ_TYMX.CZGH,
BQ_TYMX.ZFBL,
BQ_TYMX.YEPB,
BQ_TYMX.TYBQ,
BQ_TYMX.ZFPB,
BQ_TYMX.TJBZ,
‘‘ AS YPMC,
‘‘ AS CDMC,
0 as NEWTF,
BQ_TYMX.YZID,
BQ_TYMX.TYLX,
BQ_TYMX.THBZ
FROM BQ_TYMX,
YF_YFLB
WHERE
BQ_TYMX.TYRQ IS NULL AND
( BQ_TYMX.YFSB=YF_YFLB.YFSB )