告诉我第一个怎么不好统计?

解决方案 »

  1.   

    老哥你真不怕麻烦,一个小时考勤一次吗???
      

  2.   

    因为第一次做人事系统,没有经验.请多指教.
    考勤资料是按天来统计的.我该如何知道某工号某天是否迟到或者早退或者未刷卡?
    以下资料
    00000000  2003-03-27 07:12
    00000000  2003-03-27 12:12
    00000000  2003-03-27 13:12
    00000000  2003-03-27 17:12
    ...
    00000000  2003-03-28 07:12
    00000000  2003-03-28 12:12
    00000000  2003-03-28 13:12
    00000000  2003-03-28 17:12
    ...
    00000000  2003-03-29 07:12
    00000000  2003-03-29 12:12
    00000000  2003-03-29 13:12
    00000000  2003-03-29 17:12
    ...
    转换为
    00000000  2003-03-27 07:12  2003-03-27 12:12  2003-03-27 13:12  2003-03-27 17:12
    00000000  2003-03-28 07:12  2003-03-28 12:12  2003-03-28 13:12  2003-03-28 17:12
    00000000  2003-03-29 07:12  2003-03-29 12:12  2003-03-29 13:12  2003-03-29 17:12
    该如何转换?
      

  3.   

    select empno decode(to_char(in_date,'hh24:mi'),'07:12',in_date),
    decode(to_char(in_date,'hh24:mi'),'12:12',in_date),
    decode(to_char(in_date,'hh24:mi'),'13:12',in_date),
    decode(to_char(in_date,'hh24:mi'),'17:12',in_date) from tablename;