|
select YFZL.YFBM,YFZL.YFXM,YFZL.NFXM,ZNZK.HC,ZNZK.HZXM,ZNZK.HZXB,ZNZK.HZCSRQ,ZNZK.ZPZK,QYBY.BYZT,QYBY.SSSJ,QYBY.SSDW from YFZL,ZNZK where YFZL.YFBM=ZNZK.YFBM and((ZNZK.HZCSRQ >= '2007-01-01'and ZNZK.HZCSRQ <= '2007-01-31' and ZNZK.DJRQ >= '2007-01-01'and ZNZK.DJRQ <= '2007-01-31') or (ZNZK.DJRQ >= '2007-01-01'and ZNZK.DJRQ <= '2007-01-31'))and YZX='否' and DelSJ='假' UNION ALL select YFZL.YFBM,YFZL.YFXM,YFZL.NFXM,ZNZK.HC,ZNZK.HZXM,ZNZK.HZXB,ZNZK.HZCSRQ,ZNZK.ZPZK,QYBY.BYZT,QYBY.SSSJ,QYBY.SSDW from YFZL,QYBY where YFZL.YFBM=QYBY.YFBM and ((QYBY.SSSJ >= '2007-01-01'and QYBY.SSSJ <= '2007-01-31'and QYBY.TKRQ >= '2007-01-01'and QYBY.TKRQ <= '2007-01-31') or (QYBY.TKRQ >= '2007-01-01'and QYBY.TKRQ <= '2007-01-31'))and YZX='否' and DelSJ='假';
要怎么做后面的BYZT,SSSJ,SSDW,才能有显示
[ 本帖最后由 st4455 于 2008-1-11 11:47 编辑 ] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
|