码迷,mamicode.com
首页 > 其他好文 > 详细

note

时间:2015-07-24 10:36:31      阅读:92      评论:0      收藏:0      [点我收藏+]

标签:

first_value(tafd.adv_nushi_ryaku_name) over(partition by tafd.adv_nushi_code order by substr(tafd.fee_mgmt_num, 2, 11) desc, substr(tafd.fee_mgmt_eda, 2, 2) desc) as advNushiNameRyaku,

 

(select regexp_substr(replace(Seikyu_Nengetsu, ‘/‘, ‘‘), ‘[^@]+‘, 1, rownum) Seikyu_Nengetsu
from (select #{shukeiDateStr,jdbcType=CHAR} Seikyu_Nengetsu from dual)
connect by rownum <= length(regexp_replace(Seikyu_Nengetsu, ‘[^@]+‘))) TS

 

DECODE(#{kuaNegatuFlag,jdbcType=CHAR},
‘0‘,
TO_NUMBER(substr(tital.uriageNengetsu, 5, 6)),
CASE
WHEN TO_NUMBER(substr(tital.uriageNengetsu, 5, 6)) <=
TO_NUMBER(substr(replace(#{shukeiDateTo,jdbcType=CHAR}, ‘/‘, ‘‘), 5, 6)) THEN
TO_NUMBER(substr(tital.uriageNengetsu, 5, 6)) + 12
ELSE
TO_NUMBER(substr(tital.uriageNengetsu, 5, 6))
END),

 

note

标签:

原文地址:http://www.cnblogs.com/caogang/p/4672647.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!