注册 登录
编程论坛 PowerBuilder

大家好。请教一个问题,急。。。

Simon_csg 发布于 2008-06-12 09:59, 1578 次点击
select ZlEmployee.Code,   
        ZlEmployee.Name,
         ZlEmployee.zhiwu,
        ZlEmployee.zhiji,
         ZlEmployee.dept,
         jc_,
         jc_canci.ccode,
         ZlEmployee.id,
         jc_register.jctype,
         '' ad_status,
         '' ad_collect,
         '' ad_pdate,
         '' ad_cheked
from ZlEmployee,jc_register,jc_canci
where (ZlEmployee.ID = jc_register.empid) and
       (ZlEmployee.ID not in (select jc_order.empid from jc_order where ZlEmployee.ID = jc_order.empid and  convert(char(10),jc_order.pdate,120) = :ad_date )) and
        (ZlEmployee.ID not in (select jc_original.empid from jc_original where ZlEmployee.ID = jc_original.empid and convert(char(10),jc_original.pdate,120) = :ad_date and (jc_original.canciid = jc_canci.id)))  

这是数据窗口的SQL语句
我想用建视图方法,功能同上一样。不知该如何建呢。帮帮忙。先谢过。急。。。
2 回复
#2
jxyga1112008-06-17 11:03
你要说出个大概啊
#3
freele_china2008-06-17 11:49
把限制条件的参数去了.

保存到视图里就是啦.如果还想筛选数据.
在datawindow 再加限制条件就是啦
1