yeafee@夜飛郎

          it's usually better to solve problems with simplicity and finesse rather than muscle.

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            33 隨筆 :: 3 文章 :: 2 評論 :: 0 Trackbacks

          select ??? count ?(? distinct ?(di.docu_id? || ?di.policy_no || to_char(di.scan_date,? ' ?yyyymmdd? ' ?))),di.docu_id?
          ?
          from ??docu_index?di?? where ??
          di.scan_date?
          > ?last_day(add_months(sysdate,? - ? 2 ?))? + ? 1 ??? -- 上月第一天
          and ??
          di.scan_date?
          < ?LAST_DAY(add_months(sysdate,? - ? 1 ?))?? -- 上月最后一天??
          group ??? by ??di.docu_id?
          posted on 2007-12-17 14:00 @yeafee 閱讀(628) 評論(0)  編輯  收藏 所屬分類: 數據庫
          主站蜘蛛池模板: 义马市| 山丹县| 普格县| 大港区| 昌宁县| 文登市| 海南省| 军事| 宁夏| 鄄城县| 洛隆县| 靖边县| 肃北| 平乡县| 车险| 宜川县| 德昌县| 吉安市| 台东县| 寿阳县| 中西区| 桂林市| 定南县| 永定县| 精河县| 辉县市| 达日县| 吉木乃县| 嘉禾县| 宁晋县| 上杭县| 都匀市| 哈巴河县| 临漳县| 庐江县| 安仁县| 英山县| 汉源县| 日喀则市| 霍城县| 禄丰县|