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)  編輯  收藏 所屬分類: 數據庫
          主站蜘蛛池模板: 朝阳市| 德惠市| 新乡县| 来宾市| 鄯善县| 阿巴嘎旗| 剑河县| 扎兰屯市| 南澳县| 阿合奇县| 青田县| 始兴县| 张家界市| 宜城市| 河西区| 鄢陵县| 遂宁市| 修文县| 兴宁市| 泌阳县| 随州市| 栾川县| 枝江市| 江永县| 罗甸县| 万山特区| 格尔木市| 京山县| 吉木萨尔县| 泾阳县| 天门市| 鄂伦春自治旗| 昌都县| 鹤壁市| 手游| 辽宁省| 称多县| 曲周县| 繁昌县| 平顶山市| 腾冲县|