你见过最“菜鸟”的代码是?

《“胡”说IC——菜鸟工程师完美进阶》 《“胡”说IC——菜鸟工程师完美进阶》 基本信息 作者: 胡运旺    出版社:电子工业出版社 ISBN:9787121229107 上架时间:2014-5-15 出版日期:2014 年5月 开本:16开 页码:236 版次:1-1 所属分类:计算机 > 软件工程及软件方法学 > 软件方法/软件工程 更多关于》》》 《“胡”说IC——菜鸟工程师完美进阶》  ... 阅读详情

前言

今天节目是奇葩代码大赏!

开胃菜

删除数组中的某个元素。

在这里插入图片描述

没毛病,功能实现就好。

【----帮助相关技术学习,以下所有学习资料文末免费领!----】

一年维护一次的github仓库

获取今年,去年,明年的年份。图片

好像作者也懒得维护了。图片

行数不够,函数凑

boolean isTheRightNum(int num){
    boolean result = false;
    if(num == 10){
        result = true;
    }else{
        result = false;
    }
    return result;
}

正餐

老板让我写个账号验证功能

建表?前后端验证?不存在的。

图片

我只想生成0~9之间的随机数

var arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
var random = Math.floor(Math.random() * 10)

return arr[random]

如何获取明天的日期

public static DateTime getTomorrowDate()
{
     Thread.Sleep(24*60*60*1000);
     return DateTime.Now;
}

真.明天日期!

牙膏要慢慢挤

图片

图片

我终于知道为什么当年那个随机数为什么老是4了

int getRandomNumber(){  return 4;}

餐后甜点

某高校教务系统的sql语句

select * from (select case when a.kcxzdm is null then '98' else a.kcxzdm
 end kcxzdm,a.kcxzmc,case when a.xfyq is null then 0 else 
to_number(a.xfyq) end xfyq ,b.xfh1,b.xfh2,to_number(to_number((case when
 a.xfyq is null then 0 else to_number(a.xfyq) end))-to_number(b.xfh1)) 
xfc from (select * from jxjhxfyqview where jxjhh=(select dqszj||zydm 
from xsjbxxb where xh='0407100522')) a left join (select kcxz,case when 
sum(xf1) is null then 0 else sum(xf1) end xfh1,case when sum(xf2) is 
null then 0 else sum(xf2) end xfh2 from (select 
kcdm,kcmc,kcxz,cj,xf,decode(floor(McjN/60),1,xf) 
xf1,decode(floor(McjN/60),0,xf) xf2 from (select a.*,b.xymc from (select
 a.*,b.kkbmdm from (select 
xn,xq,xkkh,xh,xm,kcmc,qzxs,xf,cj,zscj,bz,xgsj,xgs,cxbj,tzf,tzfjd,kcdm,pscj,qmcj,sycj,bkcj,cxcj,kcxz,tj,tjbz,cxxnxq,qzcj,kcgs,fxbj,jf,xsqr,sfkc,ysbkcj,McjN,McxcjN,zpZ,bkcjZ,cxcjZ,cxcj1Z,cxcj2Z,cxcj3Z,cxcj4Z,cxcj5Z,cxcj1,cxcj2,cxcj3,cxcj4,cxcj5,McjX,McxcjX,McjzPN,jycj,MjyN,MjycjN,MjybkcjN,MjycxcjN,MjycxbkcjN
 ,(case when (select x.kcdm from wjdszb x where 
x.kcdm=substr(a.xkkh,case when instr(a.xkkh,'-',1,3)<>0 then 
instr(a.xkkh,'-',1,3) else length(a.xkkh)+1 end+1,case when 
instr(a.xkkh,'-',1,4)<>0 then instr(a.xkkh,'-',1,4) else 
length(a.xkkh)+1 end-(case when instr(a.xkkh,'-',1,3)<>0 then 
instr(a.xkkh,'-',1,3) else length(a.xkkh)+1 end+1))) is null then (case 
when ((select x.mc from cjlrbzb x where (','||a.bz||',' like 
'%,'||x.mc||',%' or ','||a.cj||',' like '%,'||x.mc||',%') and 
x.sfwjd='是') is null) then to_char( ( (case when McxcjN>=60 then ( 
select max(to_number(jd)) from (select substr(cj,1,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end-(1)) as qsd,substr(cj,case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1,case when 
instr(cj,'-',1,2)<>0 then instr(cj,'-',1,2) else length(cj)+1 
end-(case when instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else 
length(cj)+1 end+1)) as jsd,jd from bkcxjddzb where lb='重修' and cj like 
'%-%') a where to_number(qsd)<=McxcjN and to_number(jsd)>McxcjN ) 
when bkcjZ>=60 then ( select max(to_number(jd)) from (select 
substr(cj,1,case when instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) 
else length(cj)+1 end-(1)) as qsd,substr(cj,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end+1,case when instr(cj,'-',1,2)<>0 then instr(cj,'-',1,2) else 
length(cj)+1 end-(case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1)) as jsd,jd from bkcxjddzb 
where lb='补考' and cj like '%-%') a where to_number(qsd)<=bkcjZ and 
to_number(jsd)>bkcjZ ) else to_number( ( select max(to_number(jd)) 
from (select substr(cj,1,case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end-(1)) as qsd,substr(cj,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end+1,case when instr(cj,'-',1,10)<>0 then instr(cj,'-',1,10) else
 length(cj)+1 end-(case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1)) as jsd,jd from jddzb where 
cj like '%-%') a where to_number(qsd)<=ZpZ and to_number(jsd)>ZpZ 
)) end ) *(case when (select max(to_number(nvl(z.kcqzxs,1))) from 
kcxzdmb Z where a.kcxz=Z.kcxzmc) is null then 1 else (select 
max(to_number(nvl(z.kcqzxs,1))) from kcxzdmb Z where a.kcxz=Z.kcxzmc) 
end) )) else '' end) else '' end) jd ,case when McxcjX is not null then 
'*' else '' end dcxbj,cxdtcj,case when bkcj is not null then '*' else ''
 end bkcjbj from ( select a.*,case when McjN=zpZ then cj when McjN=bkcjZ
 then bkcj||'' when (McjN=cxcjZ and cxcj is not null) then cxcj||'' when
 (McjN=cxcj1Z and cxcj1 is not null) then cxcj1||'' when (McjN=cxcj2Z 
and cxcj2 is not null) then cxcj2||'' when (McjN=cxcj3Z and cxcj3 is not
 null) then cxcj3||'' when (McjN=cxcj4Z and cxcj4 is not null) then 
cxcj4||'' when (McjN=cxcj5Z and cxcj5 is not null) then cxcj5||'' end 
McjX, case when (McjN=cxcjZ and cxcj is not null) then cxcj||'' when 
(McjN=cxcj1Z and cxcj1 is not null) then cxcj1||'' when (McjN=cxcj2Z and
 cxcj2 is not null) then cxcj2||'' when (McjN=cxcj3Z and cxcj3 is not 
null) then cxcj3||'' when (McjN=cxcj4Z and cxcj4 is not null) then 
cxcj4||'' when (McjN=cxcj5Z and cxcj5 is not null) then cxcj5||'' end 
McxcjX from (select a.*, case when pscjN is null then 0 else 
to_number(pscjN) end pscjZ, case when qmcjN is null then 0 else 
to_number(qmcjN) end qmcjZ, case when sycjN is null then 0 else 
to_number(sycjN) end sycjZ, case when zpN is null then 0 else 
to_number(zpN) end zpZ, case when bkcjN is null then 0 else 
to_number(bkcjN) end bkcjZ, case when cxcjN is null then 0 else 
to_number(cxcjN) end cxcjZ, case when cxcj1N is null then 0 else 
to_number(cxcj1N) end cxcj1Z, case when cxcj2N is null then 0 else 
to_number(cxcj2N) end cxcj2Z, case when cxcj3N is null then 0 else 
to_number(cxcj3N) end cxcj3Z, case when cxcj4N is null then 0 else 
to_number(cxcj4N) end cxcj4Z, case when cxcj5N is null then 0 else 
to_number(cxcj5N) end cxcj5Z, case when bybkcjN is null then 0 else 
to_number(bybkcjN) end bybkcjZ, greatest(case when zpN is null then 0 
else to_number(zpN) end,case when bkcjN is null then 0 else 
to_number(bkcjN) end,case when cxcjN is null then 0 else 
to_number(cxcjN) end, case when cxcj1N is null then 0 else 
to_number(cxcj1N) end,case when cxcj2N is null then 0 else 
to_number(cxcj2N) end,case when cxcj3N is null then 0 else 
to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) McjN, least(case when zpN is null then 0 else 
to_number(zpN) end,case when bkcjN is null then 0 else to_number(bkcjN) 
end,case when cxcjN is null then 0 else to_number(cxcjN) end, case when 
cxcj1N is null then 0 else to_number(cxcj1N) end,case when cxcj2N is 
null then 0 else to_number(cxcj2N) end,case when cxcj3N is null then 0 
else to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) MincjN, 
greatest(to_number('0'||bkcjN),to_number('0'||zpN) ) McjzPN, 
greatest(case when cxcjN is null then 0 else to_number(cxcjN) end, case 
when cxcj1N is null then 0 else to_number(cxcj1N) end,case when cxcj2N 
is null then 0 else to_number(cxcj2N) end,case when cxcj3N is null then 0
 else to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) McxcjN 
,least(nvl(upper(jycj),'W'),nvl(upper(MjycxcjN),'W')) MjycjN 
,least(nvl(upper(jybkcj),'W'),nvl(upper(MjycxbkcjN),'W')) MjybkcjN 
,least(nvl(upper(jycj),'W'),nvl(upper(MjycxcjN),'W'),nvl(upper(jybkcj),'W'),nvl(upper(MjycxbkcjN),'W'))
 MjyN from (select cjb.*, case when (select dycj from cjdzb where 
cj=cjb.pscj) is null then cjb.pscj else (select to_char(dycj) from cjdzb
 where cj=cjb.pscj) end pscjN, case when (select dycj from cjdzb where 
cj=cjb.qmcj) is null then cjb.qmcj else (select to_char(dycj) from cjdzb
 where cj=cjb.qmcj) end qmcjN, case when (select dycj from cjdzb where 
cj=cjb.sycj) is null then cjb.sycj else (select to_char(dycj) from cjdzb
 where cj=cjb.sycj) end sycjN, case when (select dycj from cjdzb where 
cj=cjb.cj) is null then cjb.cj else (select to_char(dycj) from cjdzb 
where cj=cjb.cj) end zpN, case when (select dycj from cjdzb where 
cj=cjb.bkcj) is null then cjb.bkcj else (select to_char(dycj) from cjdzb
 where cj=cjb.bkcj) end bkcjN, case when (select dycj from cjdzb where 
cj=cjb.cxcj) is null then cjb.cxcj else (select to_char(dycj) from cjdzb
 where cj=cjb.cxcj) end cxcjN, case when (select dycj from cjdzb where 
cj=cjb.cxcj1) is null then cjb.cxcj1 else (select to_char(dycj) from 
cjdzb where cj=cjb.cxcj1) end cxcj1N, case when (select dycj from cjdzb 
where cj=cjb.cxcj2) is null then cjb.cxcj2 else (select to_char(dycj) 
from cjdzb where cj=cjb.cxcj2) end cxcj2N , case when (select dycj from 
cjdzb where cj=cjb.cxcj3) is null then cjb.cxcj3 else (select 
to_char(dycj) from cjdzb where cj=cjb.cxcj3) end cxcj3N, case when 
(select dycj from cjdzb where cj=cjb.cxcj4) is null then cjb.cxcj4 else 
(select to_char(dycj) from cjdzb where cj=cjb.cxcj4) end cxcj4N, case 
when (select dycj from cjdzb where cj=cjb.cxcj5) is null then cjb.cxcj5 
else (select to_char(dycj) from cjdzb where cj=cjb.cxcj5) end cxcj5N, 
case when (select dycj from cjdzb where cj=cjb.bybkcj) is null then 
cjb.bybkcj else (select to_char(dycj) from cjdzb where cj=cjb.bybkcj) 
end bybkcjN from (select 
xn,xq,xkkh,xh,xm,kcmc,qzxs,xf,cj,zscj,bz,xgsj,xgs,cxbj,tzf,tzfjd,kcdm,pscj,qmcj,sycj,bkcj,cxcj,kcxz,tj,tjbz,cxxnxq,qzcj,kcgs,fxbj,jf,xsqr,jd,cxcj1,cxcj2,cxcj3,cxcj4,cxcj5,cxdtcj,jycj,jybkcj,MjycxcjN,MjycxbkcjN,bybkcj,sfkc,ysbkcj
 from cjb_3) cjb ) a) a ) a ) a,kcdmb b where a.xh='0407100522' and 
(sfkc is null or sfkc<>'否') and substr(a.xkkh,case when 
instr(a.xkkh,'-',1,3)<>0 then instr(a.xkkh,'-',1,3) else 
length(a.xkkh)+1 end+1,case when instr(a.xkkh,'-',1,4)<>0 then 
instr(a.xkkh,'-',1,4) else length(a.xkkh)+1 end-(case when 
instr(a.xkkh,'-',1,3)<>0 then instr(a.xkkh,'-',1,3) else 
length(a.xkkh)+1 end+1))=b.kcdm(+) order by a.xkkh) a,xydmb b where 
a.kkbmdm=b.xydm(+) order by xn,xq,kcxz)) group by kcxz) b on 
a.kcxzmc=b.kcxz union all select 
'99','合计',sum(xfyq),sum(xfh1),sum(xfh2),sum(xfc) from (select case when 
a.kcxzdm is null then '98' else a.kcxzdm end kcxzdm,a.kcxzmc,case when 
a.xfyq is null then 0 else to_number(a.xfyq) end xfyq 
,b.xfh1,b.xfh2,to_number(to_number((case when a.xfyq is null then 0 else
 to_number(a.xfyq) end))-to_number(b.xfh1)) xfc from (select * from 
jxjhxfyqview where jxjhh=(select dqszj||zydm from xsjbxxb where 
xh='0407100522')) a left join (select kcxz,case when sum(xf1) is null 
then 0 else sum(xf1) end xfh1,case when sum(xf2) is null then 0 else 
sum(xf2) end xfh2 from (select 
kcdm,kcmc,kcxz,cj,xf,decode(floor(McjN/60),1,xf) 
xf1,decode(floor(McjN/60),0,xf) xf2 from (select a.*,b.xymc from (select
 a.*,b.kkbmdm from (select 
xn,xq,xkkh,xh,xm,kcmc,qzxs,xf,cj,zscj,bz,xgsj,xgs,cxbj,tzf,tzfjd,kcdm,pscj,qmcj,sycj,bkcj,cxcj,kcxz,tj,tjbz,cxxnxq,qzcj,kcgs,fxbj,jf,xsqr,sfkc,ysbkcj,McjN,McxcjN,zpZ,bkcjZ,cxcjZ,cxcj1Z,cxcj2Z,cxcj3Z,cxcj4Z,cxcj5Z,cxcj1,cxcj2,cxcj3,cxcj4,cxcj5,McjX,McxcjX,McjzPN,jycj,MjyN,MjycjN,MjybkcjN,MjycxcjN,MjycxbkcjN
 ,(case when (select x.kcdm from wjdszb x where 
x.kcdm=substr(a.xkkh,case when instr(a.xkkh,'-',1,3)<>0 then 
instr(a.xkkh,'-',1,3) else length(a.xkkh)+1 end+1,case when 
instr(a.xkkh,'-',1,4)<>0 then instr(a.xkkh,'-',1,4) else 
length(a.xkkh)+1 end-(case when instr(a.xkkh,'-',1,3)<>0 then 
instr(a.xkkh,'-',1,3) else length(a.xkkh)+1 end+1))) is null then (case 
when ((select x.mc from cjlrbzb x where (','||a.bz||',' like 
'%,'||x.mc||',%' or ','||a.cj||',' like '%,'||x.mc||',%') and 
x.sfwjd='是') is null) then to_char( ( (case when McxcjN>=60 then ( 
select max(to_number(jd)) from (select substr(cj,1,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end-(1)) as qsd,substr(cj,case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1,case when 
instr(cj,'-',1,2)<>0 then instr(cj,'-',1,2) else length(cj)+1 
end-(case when instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else 
length(cj)+1 end+1)) as jsd,jd from bkcxjddzb where lb='重修' and cj like 
'%-%') a where to_number(qsd)<=McxcjN and to_number(jsd)>McxcjN ) 
when bkcjZ>=60 then ( select max(to_number(jd)) from (select 
substr(cj,1,case when instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) 
else length(cj)+1 end-(1)) as qsd,substr(cj,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end+1,case when instr(cj,'-',1,2)<>0 then instr(cj,'-',1,2) else 
length(cj)+1 end-(case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1)) as jsd,jd from bkcxjddzb 
where lb='补考' and cj like '%-%') a where to_number(qsd)<=bkcjZ and 
to_number(jsd)>bkcjZ ) else to_number( ( select max(to_number(jd)) 
from (select substr(cj,1,case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end-(1)) as qsd,substr(cj,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end+1,case when instr(cj,'-',1,10)<>0 then instr(cj,'-',1,10) else
 length(cj)+1 end-(case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1)) as jsd,jd from jddzb where 
cj like '%-%') a where to_number(qsd)<=ZpZ and to_number(jsd)>ZpZ 
)) end ) *(case when (select max(to_number(nvl(z.kcqzxs,1))) from 
kcxzdmb Z where a.kcxz=Z.kcxzmc) is null then 1 else (select 
max(to_number(nvl(z.kcqzxs,1))) from kcxzdmb Z where a.kcxz=Z.kcxzmc) 
end) )) else '' end) else '' end) jd ,case when McxcjX is not null then 
'*' else '' end dcxbj,cxdtcj,case when bkcj is not null then '*' else ''
 end bkcjbj from ( select a.*,case when McjN=zpZ then cj when McjN=bkcjZ
 then bkcj||'' when (McjN=cxcjZ and cxcj is not null) then cxcj||'' when
 (McjN=cxcj1Z and cxcj1 is not null) then cxcj1||'' when (McjN=cxcj2Z 
and cxcj2 is not null) then cxcj2||'' when (McjN=cxcj3Z and cxcj3 is not
 null) then cxcj3||'' when (McjN=cxcj4Z and cxcj4 is not null) then 
cxcj4||'' when (McjN=cxcj5Z and cxcj5 is not null) then cxcj5||'' end 
McjX, case when (McjN=cxcjZ and cxcj is not null) then cxcj||'' when 
(McjN=cxcj1Z and cxcj1 is not null) then cxcj1||'' when (McjN=cxcj2Z and
 cxcj2 is not null) then cxcj2||'' when (McjN=cxcj3Z and cxcj3 is not 
null) then cxcj3||'' when (McjN=cxcj4Z and cxcj4 is not null) then 
cxcj4||'' when (McjN=cxcj5Z and cxcj5 is not null) then cxcj5||'' end 
McxcjX from (select a.*, case when pscjN is null then 0 else 
to_number(pscjN) end pscjZ, case when qmcjN is null then 0 else 
to_number(qmcjN) end qmcjZ, case when sycjN is null then 0 else 
to_number(sycjN) end sycjZ, case when zpN is null then 0 else 
to_number(zpN) end zpZ, case when bkcjN is null then 0 else 
to_number(bkcjN) end bkcjZ, case when cxcjN is null then 0 else 
to_number(cxcjN) end cxcjZ, case when cxcj1N is null then 0 else 
to_number(cxcj1N) end cxcj1Z, case when cxcj2N is null then 0 else 
to_number(cxcj2N) end cxcj2Z, case when cxcj3N is null then 0 else 
to_number(cxcj3N) end cxcj3Z, case when cxcj4N is null then 0 else 
to_number(cxcj4N) end cxcj4Z, case when cxcj5N is null then 0 else 
to_number(cxcj5N) end cxcj5Z, case when bybkcjN is null then 0 else 
to_number(bybkcjN) end bybkcjZ, greatest(case when zpN is null then 0 
else to_number(zpN) end,case when bkcjN is null then 0 else 
to_number(bkcjN) end,case when cxcjN is null then 0 else 
to_number(cxcjN) end, case when cxcj1N is null then 0 else 
to_number(cxcj1N) end,case when cxcj2N is null then 0 else 
to_number(cxcj2N) end,case when cxcj3N is null then 0 else 
to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) McjN, least(case when zpN is null then 0 else 
to_number(zpN) end,case when bkcjN is null then 0 else to_number(bkcjN) 
end,case when cxcjN is null then 0 else to_number(cxcjN) end, case when 
cxcj1N is null then 0 else to_number(cxcj1N) end,case when cxcj2N is 
null then 0 else to_number(cxcj2N) end,case when cxcj3N is null then 0 
else to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) MincjN, 
greatest(to_number('0'||bkcjN),to_number('0'||zpN) ) McjzPN, 
greatest(case when cxcjN is null then 0 else to_number(cxcjN) end, case 
when cxcj1N is null then 0 else to_number(cxcj1N) end,case when cxcj2N 
is null then 0 else to_number(cxcj2N) end,case when cxcj3N is null then 0
 else to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) McxcjN 
,least(nvl(upper(jycj),'W'),nvl(upper(MjycxcjN),'W')) MjycjN 
,least(nvl(upper(jybkcj),'W'),nvl(upper(MjycxbkcjN),'W')) MjybkcjN 
,least(nvl(upper(jycj),'W'),nvl(upper(MjycxcjN),'W'),nvl(upper(jybkcj),'W'),nvl(upper(MjycxbkcjN),'W'))
 MjyN from (select cjb.*, case when (select dycj from cjdzb where 
cj=cjb.pscj) is null then cjb.pscj else (select to_char(dycj) from cjdzb
 where cj=cjb.pscj) end pscjN, case when (select dycj from cjdzb where 
cj=cjb.qmcj) is null then cjb.qmcj else (select to_char(dycj) from cjdzb
 where cj=cjb.qmcj) end qmcjN, case when (select dycj from cjdzb where 
cj=cjb.sycj) is null then cjb.sycj else (select to_char(dycj) from cjdzb
 where cj=cjb.sycj) end sycjN, case when (select dycj from cjdzb where 
cj=cjb.cj) is null then cjb.cj else (select to_char(dycj) from cjdzb 
where cj=cjb.cj) end zpN, case when (select dycj from cjdzb where 
cj=cjb.bkcj) is null then cjb.bkcj else (select to_char(dycj) from cjdzb
 where cj=cjb.bkcj) end bkcjN, case when (select dycj from cjdzb where 
cj=cjb.cxcj) is null then cjb.cxcj else (select to_char(dycj) from cjdzb
 where cj=cjb.cxcj) end cxcjN, case when (select dycj from cjdzb where 
cj=cjb.cxcj1) is null then cjb.cxcj1 else (select to_char(dycj) from 
cjdzb where cj=cjb.cxcj1) end cxcj1N, case when (select dycj from cjdzb 
where cj=cjb.cxcj2) is null then cjb.cxcj2 else (select to_char(dycj) 
from cjdzb where cj=cjb.cxcj2) end cxcj2N , case when (select dycj from 
cjdzb where cj=cjb.cxcj3) is null then cjb.cxcj3 else (select 
to_char(dycj) from cjdzb where cj=cjb.cxcj3) end cxcj3N, case when 
(select dycj from cjdzb where cj=cjb.cxcj4) is null then cjb.cxcj4 else 
(select to_char(dycj) from cjdzb where cj=cjb.cxcj4) end cxcj4N, case 
when (select dycj from cjdzb where cj=cjb.cxcj5) is null then cjb.cxcj5 
else (select to_char(dycj) from cjdzb where cj=cjb.cxcj5) end cxcj5N, 
case when (select dycj from cjdzb where cj=cjb.bybkcj) is null then 
cjb.bybkcj else (select to_char(dycj) from cjdzb where cj=cjb.bybkcj) 
end bybkcjN from (select 
xn,xq,xkkh,xh,xm,kcmc,qzxs,xf,cj,zscj,bz,xgsj,xgs,cxbj,tzf,tzfjd,kcdm,pscj,qmcj,sycj,bkcj,cxcj,kcxz,tj,tjbz,cxxnxq,qzcj,kcgs,fxbj,jf,xsqr,jd,cxcj1,cxcj2,cxcj3,cxcj4,cxcj5,cxdtcj,jycj,jybkcj,MjycxcjN,MjycxbkcjN,bybkcj,sfkc,ysbkcj
 from cjb_3) cjb ) a) a ) a ) a,kcdmb b where a.xh='0407100522' and 
(sfkc is null or sfkc<>'否') and substr(a.xkkh,case when 
instr(a.xkkh,'-',1,3)<>0 then instr(a.xkkh,'-',1,3) else 
length(a.xkkh)+1 end+1,case when instr(a.xkkh,'-',1,4)<>0 then 
instr(a.xkkh,'-',1,4) else length(a.xkkh)+1 end-(case when 
instr(a.xkkh,'-',1,3)<>0 then instr(a.xkkh,'-',1,3) else 
length(a.xkkh)+1 end+1))=b.kcdm(+) order by a.xkkh) a,xydmb b where 
a.kkbmdm=b.xydm(+) order by xn,xq,kcxz)) group by kcxz) b on 
a.kcxzmc=b.kcxz)) order by kcxzdmselect * from (select case when a.bh is
 null then '98' else a.bh end bh,a.xkmc,case when a.xfyq is null then 0 
else to_number(a.xfyq) end xfyq ,b.xfh1,b.xfh2,to_number(to_number((case
 when a.xfyq is null then 0 else to_number(a.xfyq) 
end))-to_number(b.xfh1)) xfc from (select * from ( select 
a.jxjhh,a.zydm,a.zymc,a.nj,a.bh,a.xkmc, case a.bh when '1' then 
a.gxxfyq1 when '2' then a.gxxfyq2 when '3' then a.gxxfyq3 when '4' then 
a.gxxfyq4 when '5' then a.gxxfyq5 when '6' then a.gxxfyq6 when '7' then 
a.gxxfyq7 when '8' then a.gxxfyq8 when '9' then a.gxxfyq9 end xfyq from (
 select 
a.jxjhh,a.zydm,a.zymc,a.nj,b.bh,b.xkmc,a.gxxfyq1,a.gxxfyq2,a.gxxfyq3,a.gxxfyq4,a.gxxfyq5,a.gxxfyq6,
 
a.gxxfyq7,a.gxxfyq8,a.gxxfyq9,a.gxxfyq10,a.gxxfyq11,a.gxxfyq12,a.gxxfyq13,a.gxxfyq14,a.gxxfyq15,
 a.gxxfyq16, a.gxxfyq17, a.gxxfyq18, a.gxxfyq19, a.gxxfyq20, a.gxxfyq21,
 a.gxxfyq22, a.gxxfyq23, a.gxxfyq24,a.gxxfyq25,a.gxxfyq26 from jxjhzyxxb
 a,xkdmb b order by a.jxjhh,b.bh ) a ) where jxjhh=(select dqszj||zydm 
from xsjbxxb where xh='0407100522')) a left join (select kcgs,case when 
sum(xf1) is null then 0 else sum(xf1) end xfh1,case when sum(xf2) is 
null then 0 else sum(xf2) end xfh2 from (select 
kcdm,kcmc,kcgs,cj,xf,decode(floor(McjN/60),1,xf) 
xf1,decode(floor(McjN/60),0,xf) xf2 from (select a.*,b.xymc from (select
 a.*,b.kkbmdm from (select 
xn,xq,xkkh,xh,xm,kcmc,qzxs,xf,cj,zscj,bz,xgsj,xgs,cxbj,tzf,tzfjd,kcdm,pscj,qmcj,sycj,bkcj,cxcj,kcxz,tj,tjbz,cxxnxq,qzcj,kcgs,fxbj,jf,xsqr,sfkc,ysbkcj,McjN,McxcjN,zpZ,bkcjZ,cxcjZ,cxcj1Z,cxcj2Z,cxcj3Z,cxcj4Z,cxcj5Z,cxcj1,cxcj2,cxcj3,cxcj4,cxcj5,McjX,McxcjX,McjzPN,jycj,MjyN,MjycjN,MjybkcjN,MjycxcjN,MjycxbkcjN
 ,(case when (select x.kcdm from wjdszb x where 
x.kcdm=substr(a.xkkh,case when instr(a.xkkh,'-',1,3)<>0 then 
instr(a.xkkh,'-',1,3) else length(a.xkkh)+1 end+1,case when 
instr(a.xkkh,'-',1,4)<>0 then instr(a.xkkh,'-',1,4) else 
length(a.xkkh)+1 end-(case when instr(a.xkkh,'-',1,3)<>0 then 
instr(a.xkkh,'-',1,3) else length(a.xkkh)+1 end+1))) is null then (case 
when ((select x.mc from cjlrbzb x where (','||a.bz||',' like 
'%,'||x.mc||',%' or ','||a.cj||',' like '%,'||x.mc||',%') and 
x.sfwjd='是') is null) then to_char( ( (case when McxcjN>=60 then ( 
select max(to_number(jd)) from (select substr(cj,1,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end-(1)) as qsd,substr(cj,case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1,case when 
instr(cj,'-',1,2)<>0 then instr(cj,'-',1,2) else length(cj)+1 
end-(case when instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else 
length(cj)+1 end+1)) as jsd,jd from bkcxjddzb where lb='重修' and cj like 
'%-%') a where to_number(qsd)<=McxcjN and to_number(jsd)>McxcjN ) 
when bkcjZ>=60 then ( select max(to_number(jd)) from (select 
substr(cj,1,case when instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) 
else length(cj)+1 end-(1)) as qsd,substr(cj,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end+1,case when instr(cj,'-',1,2)<>0 then instr(cj,'-',1,2) else 
length(cj)+1 end-(case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1)) as jsd,jd from bkcxjddzb 
where lb='补考' and cj like '%-%') a where to_number(qsd)<=bkcjZ and 
to_number(jsd)>bkcjZ ) else to_number( ( select max(to_number(jd)) 
from (select substr(cj,1,case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end-(1)) as qsd,substr(cj,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end+1,case when instr(cj,'-',1,10)<>0 then instr(cj,'-',1,10) else
 length(cj)+1 end-(case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1)) as jsd,jd from jddzb where 
cj like '%-%') a where to_number(qsd)<=ZpZ and to_number(jsd)>ZpZ 
)) end ) *(case when (select max(to_number(nvl(z.kcqzxs,1))) from 
kcxzdmb Z where a.kcxz=Z.kcxzmc) is null then 1 else (select 
max(to_number(nvl(z.kcqzxs,1))) from kcxzdmb Z where a.kcxz=Z.kcxzmc) 
end) )) else '' end) else '' end) jd ,case when McxcjX is not null then 
'*' else '' end dcxbj,cxdtcj,case when bkcj is not null then '*' else ''
 end bkcjbj from ( select a.*,case when McjN=zpZ then cj when McjN=bkcjZ
 then bkcj||'' when (McjN=cxcjZ and cxcj is not null) then cxcj||'' when
 (McjN=cxcj1Z and cxcj1 is not null) then cxcj1||'' when (McjN=cxcj2Z 
and cxcj2 is not null) then cxcj2||'' when (McjN=cxcj3Z and cxcj3 is not
 null) then cxcj3||'' when (McjN=cxcj4Z and cxcj4 is not null) then 
cxcj4||'' when (McjN=cxcj5Z and cxcj5 is not null) then cxcj5||'' end 
McjX, case when (McjN=cxcjZ and cxcj is not null) then cxcj||'' when 
(McjN=cxcj1Z and cxcj1 is not null) then cxcj1||'' when (McjN=cxcj2Z and
 cxcj2 is not null) then cxcj2||'' when (McjN=cxcj3Z and cxcj3 is not 
null) then cxcj3||'' when (McjN=cxcj4Z and cxcj4 is not null) then 
cxcj4||'' when (McjN=cxcj5Z and cxcj5 is not null) then cxcj5||'' end 
McxcjX from (select a.*, case when pscjN is null then 0 else 
to_number(pscjN) end pscjZ, case when qmcjN is null then 0 else 
to_number(qmcjN) end qmcjZ, case when sycjN is null then 0 else 
to_number(sycjN) end sycjZ, case when zpN is null then 0 else 
to_number(zpN) end zpZ, case when bkcjN is null then 0 else 
to_number(bkcjN) end bkcjZ, case when cxcjN is null then 0 else 
to_number(cxcjN) end cxcjZ, case when cxcj1N is null then 0 else 
to_number(cxcj1N) end cxcj1Z, case when cxcj2N is null then 0 else 
to_number(cxcj2N) end cxcj2Z, case when cxcj3N is null then 0 else 
to_number(cxcj3N) end cxcj3Z, case when cxcj4N is null then 0 else 
to_number(cxcj4N) end cxcj4Z, case when cxcj5N is null then 0 else 
to_number(cxcj5N) end cxcj5Z, case when bybkcjN is null then 0 else 
to_number(bybkcjN) end bybkcjZ, greatest(case when zpN is null then 0 
else to_number(zpN) end,case when bkcjN is null then 0 else 
to_number(bkcjN) end,case when cxcjN is null then 0 else 
to_number(cxcjN) end, case when cxcj1N is null then 0 else 
to_number(cxcj1N) end,case when cxcj2N is null then 0 else 
to_number(cxcj2N) end,case when cxcj3N is null then 0 else 
to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) McjN, least(case when zpN is null then 0 else 
to_number(zpN) end,case when bkcjN is null then 0 else to_number(bkcjN) 
end,case when cxcjN is null then 0 else to_number(cxcjN) end, case when 
cxcj1N is null then 0 else to_number(cxcj1N) end,case when cxcj2N is 
null then 0 else to_number(cxcj2N) end,case when cxcj3N is null then 0 
else to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) MincjN, 
greatest(to_number('0'||bkcjN),to_number('0'||zpN) ) McjzPN, 
greatest(case when cxcjN is null then 0 else to_number(cxcjN) end, case 
when cxcj1N is null then 0 else to_number(cxcj1N) end,case when cxcj2N 
is null then 0 else to_number(cxcj2N) end,case when cxcj3N is null then 0
 else to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) McxcjN 
,least(nvl(upper(jycj),'W'),nvl(upper(MjycxcjN),'W')) MjycjN 
,least(nvl(upper(jybkcj),'W'),nvl(upper(MjycxbkcjN),'W')) MjybkcjN 
,least(nvl(upper(jycj),'W'),nvl(upper(MjycxcjN),'W'),nvl(upper(jybkcj),'W'),nvl(upper(MjycxbkcjN),'W'))
 MjyN from (select cjb.*, case when (select dycj from cjdzb where 
cj=cjb.pscj) is null then cjb.pscj else (select to_char(dycj) from cjdzb
 where cj=cjb.pscj) end pscjN, case when (select dycj from cjdzb where 
cj=cjb.qmcj) is null then cjb.qmcj else (select to_char(dycj) from cjdzb
 where cj=cjb.qmcj) end qmcjN, case when (select dycj from cjdzb where 
cj=cjb.sycj) is null then cjb.sycj else (select to_char(dycj) from cjdzb
 where cj=cjb.sycj) end sycjN, case when (select dycj from cjdzb where 
cj=cjb.cj) is null then cjb.cj else (select to_char(dycj) from cjdzb 
where cj=cjb.cj) end zpN, case when (select dycj from cjdzb where 
cj=cjb.bkcj) is null then cjb.bkcj else (select to_char(dycj) from cjdzb
 where cj=cjb.bkcj) end bkcjN, case when (select dycj from cjdzb where 
cj=cjb.cxcj) is null then cjb.cxcj else (select to_char(dycj) from cjdzb
 where cj=cjb.cxcj) end cxcjN, case when (select dycj from cjdzb where 
cj=cjb.cxcj1) is null then cjb.cxcj1 else (select to_char(dycj) from 
cjdzb where cj=cjb.cxcj1) end cxcj1N, case when (select dycj from cjdzb 
where cj=cjb.cxcj2) is null then cjb.cxcj2 else (select to_char(dycj) 
from cjdzb where cj=cjb.cxcj2) end cxcj2N , case when (select dycj from 
cjdzb where cj=cjb.cxcj3) is null then cjb.cxcj3 else (select 
to_char(dycj) from cjdzb where cj=cjb.cxcj3) end cxcj3N, case when 
(select dycj from cjdzb where cj=cjb.cxcj4) is null then cjb.cxcj4 else 
(select to_char(dycj) from cjdzb where cj=cjb.cxcj4) end cxcj4N, case 
when (select dycj from cjdzb where cj=cjb.cxcj5) is null then cjb.cxcj5 
else (select to_char(dycj) from cjdzb where cj=cjb.cxcj5) end cxcj5N, 
case when (select dycj from cjdzb where cj=cjb.bybkcj) is null then 
cjb.bybkcj else (select to_char(dycj) from cjdzb where cj=cjb.bybkcj) 
end bybkcjN from (select 
xn,xq,xkkh,xh,xm,kcmc,qzxs,xf,cj,zscj,bz,xgsj,xgs,cxbj,tzf,tzfjd,kcdm,pscj,qmcj,sycj,bkcj,cxcj,kcxz,tj,tjbz,cxxnxq,qzcj,kcgs,fxbj,jf,xsqr,jd,cxcj1,cxcj2,cxcj3,cxcj4,cxcj5,cxdtcj,jycj,jybkcj,MjycxcjN,MjycxbkcjN,bybkcj,sfkc,ysbkcj
 from cjb_3) cjb ) a) a ) a ) a,kcdmb b where a.xh='0407100522' and 
(sfkc is null or sfkc<>'否') and substr(a.xkkh,case when 
instr(a.xkkh,'-',1,3)<>0 then instr(a.xkkh,'-',1,3) else 
length(a.xkkh)+1 end+1,case when instr(a.xkkh,'-',1,4)<>0 then 
instr(a.xkkh,'-',1,4) else length(a.xkkh)+1 end-(case when 
instr(a.xkkh,'-',1,3)<>0 then instr(a.xkkh,'-',1,3) else 
length(a.xkkh)+1 end+1))=b.kcdm(+) order by a.xkkh) a,xydmb b where 
a.kkbmdm=b.xydm(+) order by xn,xq,kcxz)) group by kcgs) b on 
a.xkmc=b.kcgs union all select 
'Z99','合计',sum(xfyq),sum(xfh1),sum(xfh2),sum(xfc) from (select case when
 a.bh is null then '98' else a.bh end bh,a.xkmc,case when a.xfyq is null
 then 0 else to_number(a.xfyq) end xfyq 
,b.xfh1,b.xfh2,to_number(to_number((case when a.xfyq is null then 0 else
 to_number(a.xfyq) end))-to_number(b.xfh1)) xfc from (select * from ( 
select a.jxjhh,a.zydm,a.zymc,a.nj,a.bh,a.xkmc, case a.bh when '1' then 
a.gxxfyq1 when '2' then a.gxxfyq2 when '3' then a.gxxfyq3 when '4' then 
a.gxxfyq4 when '5' then a.gxxfyq5 when '6' then a.gxxfyq6 when '7' then 
a.gxxfyq7 when '8' then a.gxxfyq8 when '9' then a.gxxfyq9 end xfyq from (
 select 
a.jxjhh,a.zydm,a.zymc,a.nj,b.bh,b.xkmc,a.gxxfyq1,a.gxxfyq2,a.gxxfyq3,a.gxxfyq4,a.gxxfyq5,a.gxxfyq6,
 
a.gxxfyq7,a.gxxfyq8,a.gxxfyq9,a.gxxfyq10,a.gxxfyq11,a.gxxfyq12,a.gxxfyq13,a.gxxfyq14,a.gxxfyq15,
 a.gxxfyq16, a.gxxfyq17, a.gxxfyq18, a.gxxfyq19, a.gxxfyq20, a.gxxfyq21,
 a.gxxfyq22, a.gxxfyq23, a.gxxfyq24,a.gxxfyq25,a.gxxfyq26 from jxjhzyxxb
 a,xkdmb b order by a.jxjhh,b.bh ) a ) where jxjhh=(select dqszj||zydm 
from xsjbxxb where xh='0407100522')) a left join (select kcgs,case when 
sum(xf1) is null then 0 else sum(xf1) end xfh1,case when sum(xf2) is 
null then 0 else sum(xf2) end xfh2 from (select 
kcdm,kcmc,kcgs,cj,xf,decode(floor(McjN/60),1,xf) 
xf1,decode(floor(McjN/60),0,xf) xf2 from (select a.*,b.xymc from (select
 a.*,b.kkbmdm from (select 
xn,xq,xkkh,xh,xm,kcmc,qzxs,xf,cj,zscj,bz,xgsj,xgs,cxbj,tzf,tzfjd,kcdm,pscj,qmcj,sycj,bkcj,cxcj,kcxz,tj,tjbz,cxxnxq,qzcj,kcgs,fxbj,jf,xsqr,sfkc,ysbkcj,McjN,McxcjN,zpZ,bkcjZ,cxcjZ,cxcj1Z,cxcj2Z,cxcj3Z,cxcj4Z,cxcj5Z,cxcj1,cxcj2,cxcj3,cxcj4,cxcj5,McjX,McxcjX,McjzPN,jycj,MjyN,MjycjN,MjybkcjN,MjycxcjN,MjycxbkcjN
 ,(case when (select x.kcdm from wjdszb x where 
x.kcdm=substr(a.xkkh,case when instr(a.xkkh,'-',1,3)<>0 then 
instr(a.xkkh,'-',1,3) else length(a.xkkh)+1 end+1,case when 
instr(a.xkkh,'-',1,4)<>0 then instr(a.xkkh,'-',1,4) else 
length(a.xkkh)+1 end-(case when instr(a.xkkh,'-',1,3)<>0 then 
instr(a.xkkh,'-',1,3) else length(a.xkkh)+1 end+1))) is null then (case 
when ((select x.mc from cjlrbzb x where (','||a.bz||',' like 
'%,'||x.mc||',%' or ','||a.cj||',' like '%,'||x.mc||',%') and 
x.sfwjd='是') is null) then to_char( ( (case when McxcjN>=60 then ( 
select max(to_number(jd)) from (select substr(cj,1,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end-(1)) as qsd,substr(cj,case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1,case when 
instr(cj,'-',1,2)<>0 then instr(cj,'-',1,2) else length(cj)+1 
end-(case when instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else 
length(cj)+1 end+1)) as jsd,jd from bkcxjddzb where lb='重修' and cj like 
'%-%') a where to_number(qsd)<=McxcjN and to_number(jsd)>McxcjN ) 
when bkcjZ>=60 then ( select max(to_number(jd)) from (select 
substr(cj,1,case when instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) 
else length(cj)+1 end-(1)) as qsd,substr(cj,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end+1,case when instr(cj,'-',1,2)<>0 then instr(cj,'-',1,2) else 
length(cj)+1 end-(case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1)) as jsd,jd from bkcxjddzb 
where lb='补考' and cj like '%-%') a where to_number(qsd)<=bkcjZ and 
to_number(jsd)>bkcjZ ) else to_number( ( select max(to_number(jd)) 
from (select substr(cj,1,case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end-(1)) as qsd,substr(cj,case when 
instr(cj,'-',1,1)<>0 then instr(cj,'-',1,1) else length(cj)+1 
end+1,case when instr(cj,'-',1,10)<>0 then instr(cj,'-',1,10) else
 length(cj)+1 end-(case when instr(cj,'-',1,1)<>0 then 
instr(cj,'-',1,1) else length(cj)+1 end+1)) as jsd,jd from jddzb where 
cj like '%-%') a where to_number(qsd)<=ZpZ and to_number(jsd)>ZpZ 
)) end ) *(case when (select max(to_number(nvl(z.kcqzxs,1))) from 
kcxzdmb Z where a.kcxz=Z.kcxzmc) is null then 1 else (select 
max(to_number(nvl(z.kcqzxs,1))) from kcxzdmb Z where a.kcxz=Z.kcxzmc) 
end) )) else '' end) else '' end) jd ,case when McxcjX is not null then 
'*' else '' end dcxbj,cxdtcj,case when bkcj is not null then '*' else ''
 end bkcjbj from ( select a.*,case when McjN=zpZ then cj when McjN=bkcjZ
 then bkcj||'' when (McjN=cxcjZ and cxcj is not null) then cxcj||'' when
 (McjN=cxcj1Z and cxcj1 is not null) then cxcj1||'' when (McjN=cxcj2Z 
and cxcj2 is not null) then cxcj2||'' when (McjN=cxcj3Z and cxcj3 is not
 null) then cxcj3||'' when (McjN=cxcj4Z and cxcj4 is not null) then 
cxcj4||'' when (McjN=cxcj5Z and cxcj5 is not null) then cxcj5||'' end 
McjX, case when (McjN=cxcjZ and cxcj is not null) then cxcj||'' when 
(McjN=cxcj1Z and cxcj1 is not null) then cxcj1||'' when (McjN=cxcj2Z and
 cxcj2 is not null) then cxcj2||'' when (McjN=cxcj3Z and cxcj3 is not 
null) then cxcj3||'' when (McjN=cxcj4Z and cxcj4 is not null) then 
cxcj4||'' when (McjN=cxcj5Z and cxcj5 is not null) then cxcj5||'' end 
McxcjX from (select a.*, case when pscjN is null then 0 else 
to_number(pscjN) end pscjZ, case when qmcjN is null then 0 else 
to_number(qmcjN) end qmcjZ, case when sycjN is null then 0 else 
to_number(sycjN) end sycjZ, case when zpN is null then 0 else 
to_number(zpN) end zpZ, case when bkcjN is null then 0 else 
to_number(bkcjN) end bkcjZ, case when cxcjN is null then 0 else 
to_number(cxcjN) end cxcjZ, case when cxcj1N is null then 0 else 
to_number(cxcj1N) end cxcj1Z, case when cxcj2N is null then 0 else 
to_number(cxcj2N) end cxcj2Z, case when cxcj3N is null then 0 else 
to_number(cxcj3N) end cxcj3Z, case when cxcj4N is null then 0 else 
to_number(cxcj4N) end cxcj4Z, case when cxcj5N is null then 0 else 
to_number(cxcj5N) end cxcj5Z, case when bybkcjN is null then 0 else 
to_number(bybkcjN) end bybkcjZ, greatest(case when zpN is null then 0 
else to_number(zpN) end,case when bkcjN is null then 0 else 
to_number(bkcjN) end,case when cxcjN is null then 0 else 
to_number(cxcjN) end, case when cxcj1N is null then 0 else 
to_number(cxcj1N) end,case when cxcj2N is null then 0 else 
to_number(cxcj2N) end,case when cxcj3N is null then 0 else 
to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) McjN, least(case when zpN is null then 0 else 
to_number(zpN) end,case when bkcjN is null then 0 else to_number(bkcjN) 
end,case when cxcjN is null then 0 else to_number(cxcjN) end, case when 
cxcj1N is null then 0 else to_number(cxcj1N) end,case when cxcj2N is 
null then 0 else to_number(cxcj2N) end,case when cxcj3N is null then 0 
else to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) MincjN, 
greatest(to_number('0'||bkcjN),to_number('0'||zpN) ) McjzPN, 
greatest(case when cxcjN is null then 0 else to_number(cxcjN) end, case 
when cxcj1N is null then 0 else to_number(cxcj1N) end,case when cxcj2N 
is null then 0 else to_number(cxcj2N) end,case when cxcj3N is null then 0
 else to_number(cxcj3N) end ,case when cxcj4N is null then 0 else 
to_number(cxcj4N) end,case when cxcj5N is null then 0 else 
to_number(cxcj5N) end ) McxcjN 
,least(nvl(upper(jycj),'W'),nvl(upper(MjycxcjN),'W')) MjycjN 
,least(nvl(upper(jybkcj),'W'),nvl(upper(MjycxbkcjN),'W')) MjybkcjN 
,least(nvl(upper(jycj),'W'),nvl(upper(MjycxcjN),'W'),nvl(upper(jybkcj),'W'),nvl(upper(MjycxbkcjN),'W'))
 MjyN from (select cjb.*, case when (select dycj from cjdzb where 
cj=cjb.pscj) is null then cjb.pscj else (select to_char(dycj) from cjdzb
 where cj=cjb.pscj) end pscjN, case when (select dycj from cjdzb where 
cj=cjb.qmcj) is null then cjb.qmcj else (select to_char(dycj) from cjdzb
 where cj=cjb.qmcj) end qmcjN, case when (select dycj from cjdzb where 
cj=cjb.sycj) is null then cjb.sycj else (select to_char(dycj) from cjdzb
 where cj=cjb.sycj) end sycjN, case when (select dycj from cjdzb where 
cj=cjb.cj) is null then cjb.cj else (select to_char(dycj) from cjdzb 
where cj=cjb.cj) end zpN, case when (select dycj from cjdzb where 
cj=cjb.bkcj) is null then cjb.bkcj else (select to_char(dycj) from cjdzb
 where cj=cjb.bkcj) end bkcjN, case when (select dycj from cjdzb where 
cj=cjb.cxcj) is null then cjb.cxcj else (select to_char(dycj) from cjdzb
 where cj=cjb.cxcj) end cxcjN, case when (select dycj from cjdzb where 
cj=cjb.cxcj1) is null then cjb.cxcj1 else (select to_char(dycj) from 
cjdzb where cj=cjb.cxcj1) end cxcj1N, case when (select dycj from cjdzb 
where cj=cjb.cxcj2) is null then cjb.cxcj2 else (select to_char(dycj) 
from cjdzb where cj=cjb.cxcj2) end cxcj2N , case when (select dycj from 
cjdzb where cj=cjb.cxcj3) is null then cjb.cxcj3 else (select 
to_char(dycj) from cjdzb where cj=cjb.cxcj3) end cxcj3N, case when 
(select dycj from cjdzb where cj=cjb.cxcj4) is null then cjb.cxcj4 else 
(select to_char(dycj) from cjdzb where cj=cjb.cxcj4) end cxcj4N, case 
when (select dycj from cjdzb where cj=cjb.cxcj5) is null then cjb.cxcj5 
else (select to_char(dycj) from cjdzb where cj=cjb.cxcj5) end cxcj5N, 
case when (select dycj from cjdzb where cj=cjb.bybkcj) is null then 
cjb.bybkcj else (select to_char(dycj) from cjdzb where cj=cjb.bybkcj) 
end bybkcjN from (select 
xn,xq,xkkh,xh,xm,kcmc,qzxs,xf,cj,zscj,bz,xgsj,xgs,cxbj,tzf,tzfjd,kcdm,pscj,qmcj,sycj,bkcj,cxcj,kcxz,tj,tjbz,cxxnxq,qzcj,kcgs,fxbj,jf,xsqr,jd,cxcj1,cxcj2,cxcj3,cxcj4,cxcj5,cxdtcj,jycj,jybkcj,MjycxcjN,MjycxbkcjN,bybkcj,sfkc,ysbkcj
 from cjb_3) cjb ) a) a ) a ) a,kcdmb b where a.xh='0407100522' and 
(sfkc is null or sfkc<>'否') and substr(a.xkkh,case when 
instr(a.xkkh,'-',1,3)<>0 then instr(a.xkkh,'-',1,3) else 
length(a.xkkh)+1 end+1,case when instr(a.xkkh,'-',1,4)<>0 then 
instr(a.xkkh,'-',1,4) else length(a.xkkh)+1 end-(case when 
instr(a.xkkh,'-',1,3)<>0 then instr(a.xkkh,'-',1,3) else 
length(a.xkkh)+1 end+1))=b.kcdm(+) order by a.xkkh) a,xydmb b where 
a.kkbmdm=b.xydm(+) order by xn,xq,kcxz)) group by kcgs) b on 
a.xkmc=b.kcgs )) order by bh

我承认文章字数不够,靠代码凑。

最后

还有,你们还见过哪些惊为天人的代码,请评论区留言,让我们大家都开心一下。

感谢每一个认真阅读我文章的人,礼尚往来总是要有的,虽然不是什么很值钱的东西,如果你用得到的话可以直接拿走:

读者福利:如果大家对Python感兴趣,这套python学习资料一定对你有用

对于0基础小白入门:

如果你是零基础小白,想快速入门Python是可以考虑的。

一方面是学习时间相对较短,学习内容更全面更集中。
二方面是可以根据这些资料规划好学习计划和方向。

包括:Python激活码+安装包、Python web开发,Python爬虫,Python数据分析,人工智能、机器学习、Python量化交易等习教程。带你从零基础系统性的学好Python!

零基础Python学习资源介绍

① Python所有方向的学习路线图,清楚各个方向要学什么东西

② 600多节Python课程视频,涵盖必备基础、爬虫和数据分析

③ 100多个Python实战案例,含50个超大型项目详解,学习不再是只会理论

④ 20款主流手游迫解 爬虫手游逆行迫解教程包

⑤ 爬虫与反爬虫攻防教程包,含15个大型网站迫解

⑥ 爬虫APP逆向实战教程包,含45项绝密技术详解

⑦ 超300本Python电子好书,从入门到高阶应有尽有

⑧ 华为出品独家Python漫画教程,手机也能学习

⑨ 历年互联网企业Python面试真题,复习时非常方便

👉Python学习路线汇总👈

Python所有方向的技术点做的整理,形成各个领域的知识点汇总,它的用处就在于,你可以按照上面的知识点去找对应的学习资源,保证自己学得较为全面。(全套教程文末领取哈)

👉Python必备开发工具👈

温馨提示:篇幅有限,已打包文件夹,获取方式在:文末

👉Python学习视频600合集👈

观看零基础学习视频,看视频学习是最快捷也是最有效果的方式,跟着视频中老师的思路,从基础到深入,还是很容易入门的。

👉实战案例👈

光学理论是没用的,要学会跟着一起敲,要动手实操,才能将自己的所学运用到实际当中去,这时候可以搞点实战案例来学习。
在这里插入图片描述

👉100道Python练习题👈

检查学习结果。

👉面试刷题👈

在这里插入图片描述

在这里插入图片描述

资料领取

这份完整版的Python全套学习资料已经上传网盘,朋友们如果需要可以点击下方微信卡片免费领取 ↓↓↓【保证100%免费】
或者

【点此链接】领取

好文推荐

了解python的前景:https://blog.csdn.net/SpringJavaMyBatis/article/details/127194835

了解python的兼职副业:https://blog.csdn.net/SpringJavaMyBatis/article/details/127196603

vue 中使用菜鸟打印 这篇来简单介绍一下使用菜鸟打印的流程 一:选择要打印的订单,这里可以自由做一些筛选,比如只有待发货的订单才能打印 二:拿到要打印的订单集合后,就要开始进行打印了 1.首先初始化 WebSocket 这里最好全局初始化一下,不用重复的初始化这个WebSocket doConnect() { var that=this; t... 阅读详情

相关推荐

如何用 OBProxy 实现 OceanBase 的最佳路由策略

本文基于业务中一类常见的路由问题展开,对OceanBase的路由功能及对应配置项做详细介绍,指导用户在业务实践中如何正确的配置路由策略及快速排查路由问题

OceanBase分布式数据库的博客 1717

菜鸟代码(学习C++自我检验)

程序内容: 这串代码可以计算出任意年月日之间相差的天数(并且把闰年润月也计算在了其中)。代码表达非常简单,只是细节表达有点耗费时间。代码一共有五段。第一至第四段是头文件,第五段是主函数。 第一段:目的是计算出在除第一与最后一年外中间年份的天数 #pragma once int Month[12] = { 31,28,31,30,31,30,31,31,30,31,30,31 }; #ifndef _CALCULZTEYEARDAY_H #define _CALCULZT...

weixin_48384731的博客 1017

用树莓派搭建全功能NAS服务器(01):树莓派基础操作&OMV搭建

写在前面 对于文件互传来说,局域网和云盘的操作总是独立的,而且很难将两者的优势合为一体。如果想要集多种优势为一体,那么NAS应该就是较为完美的解决方案了。 在这个系列中我们尽量跳过一些枯燥的理论知识,专注于说明两件事:   1.NAS是什么&能做什么 2.搭建思路&怎么做   这中间也会涉及到一些方案的选择,同类方案我也会列出来和大家分享我已知的优缺点,有兴趣可以多种尝试。(侧重于软件) 虽然是用树莓派搭建的,但是对于debian linux系统下的NAS搭建有着很好的参

斯塔克家的真维斯的工作间 2万+

菜鸟写代码[第一篇]

菜鸟写代码[第一篇] 编写一个程序,去掉给定字符串中重复的字符(面试题) #include <stdio.h> #include<string.h> char *(delate) ( char *s,int lenth); char main(void) { char s[50]; scanf("%s",s); int c = strlen (s); char *p = delate(s,c);//将字符串放进该函数 printf("%s",p); } char

baidu_41384022的博客 361

安卓刷机底包全解析:从分区文件到卡刷包制作实战

本文全面解析安卓刷机底包的核心概念与实战技巧,涵盖分区文件结构、卡刷包制作及兼容性风险指南。通过详细案例展示如何提取官方底包、修改刷机脚本并适配多机型,帮助用户避免变砖风险并提升刷机成功率。特别强调基带、Bootloader等关键分区的正确处理方式,是安卓刷机爱好者的必备指南。

agile9scrum的博客 755

低速信号设计之 ESPI 篇

ESPI 是 Intel 推出的增强型串行外设接口,基于 SPI 发展而来,新增 Reset# 和 Alert# 信号,采用点对点主从通信模型,最高速率达 33MHz,支持半双工与 DMA 传输。 其物理接口含 10 条线路,通信协议分物理层、数据链路层等四层。布局布线需关注信号完整性、电源完整性,还得考虑与 SPI 的兼容性。 ESPI 广泛应用于计算机系统(连接 BIOS、电源管理器等)和工业控制领域,具有引脚少、功耗低等优势,但设计复杂且存在兼容性挑战。

qq_16237389的博客 1400

JavaScript:大佬和菜鸟的8种代码写法

JavaScript,如何写出简洁易懂得代码风格,我们来看看大佬和菜鸟的8种代码写法 1、声明变量小学生写法:let x; let y;let z = "a";大学生写法: let x, y, z="a";

qqrrjj2011的博客 652

【人工智能时代】- 一键部署本地AI大模型

Ollama是一个开源项目,致力于简化大型语言模型(LLM)的本地部署过程。它允许用户在自己的硬件上运行和测试最新的语言模型,无需依赖云服务。Ollama提供了一个类似于OpenAI的API接口,使得开发者可以轻松地在自己的应用程序中集成大型语言模型。此外,Ollama WebUI为用户提供了一个友好的界面,用于管理和与模型进行交互。

xiaoli8748的专栏 2444

Java入门代码————菜鸟驿站

package bird; import javax.swing.*; import java.awt.*; import java.time.LocalDate; import java.util.Locale; public class Bird { public static int times = 2; public static int times2 = 0; public static String[] users = new String[10]; pu

Sisto的博客 2844

【华为OD机试真题 新系统】1043、魔法咒语组合 | 机试真题+思路参考+代码解析(C++、Java、Py、C语言、JS)

【华为OD机试真题 新系统】1043、魔法咒语组合 | 机试真题+思路参考+代码解析(C++、Java、Py、C语言、JS) 华为od机试,华为od机试真题,华为od机试E卷,华为odE卷,华为od机试真题E卷,华为OD,华为OD机试,华为OD机试真题,华为od机考,华为od机试D卷,华为od机试真题D卷,华为od手撕代码,华为od,华为od机试C卷,华为od e卷,华为2026e卷,od机试,2026E卷,华为OD机试E卷,什么是华为od,华为od介绍,全面了解华为od,2026华为od,如何备战华为od

KJ.JK 290

uniapp(全端兼容) - 最新详细实现pdf在线预览功能,uniapp内置预览PDF文件功能,uniapp在安卓app|苹果app|h5网页网站|微信小程序中打开pdf进行在线预览(详细示例源码)

uni-app,安卓Android,苹果ios,App端,H5网页,移动端网站,微信小程序,支付宝小程序,nvue,vue,pdf文档,pdf文件,office,uniapp 预览pdf,uniapp怎么做pdf预览,uniapp如何实现全平台兼容的pdf在线预览,uniapp怎么在h5打开pdf文档,实现PDF在线预览,H5移动端文件预览pdf,文件下载和预览,uniapp App端pdf文件预览,app移动端在线预览pdf文件,无法预览pdf怎么办,有没有预览pdf的插件,根本打不开咋办,uniapp使

✅ 精选推荐文章 1万+

Python菜鸟leecode刷题:数组搜索插入位置

知识点总结。

m0_73763994的博客 507

费雪的未来增长评估:预测颠覆性技术的影响

本文旨在提供一个系统性的框架,用于评估和预测颠覆性技术的增长轨迹。我们将重点关注费雪增长模型(Fisher-Pry Model)这一经典技术扩散理论,探讨其在现代技术预测中的应用价值。文章首先介绍费雪增长模型的基本概念,然后深入其数学原理和算法实现。随后展示实际应用案例,讨论工具资源,最后探讨未来发展趋势。每个部分都包含详细的技术实现和理论分析。费雪增长模型(Fisher-Pry Model):一种描述技术替代过程的S型增长模型,用于预测新技术取代旧技术的速率。

欢迎来到我的CSDN空间!这里聚焦AI大模型应用实战,分享前沿技术、实战案例与开发经验。 931

“菜鸟”程序员和“大神”程序员差距在哪里

“菜鸟”和“大神” 刚刚走出就业的程序员,技术是刚刚起步的基点。那下面我们就聊一聊有关技术的东西。首先请您先想想这几个问题。现在社会上有很多程序员,CSDN就是我们程序员的家,那您是否可想过程序员为什么会有不同的水平?你又是哪一类的程序员?“菜鸟”程序员和“大神”程序员差在哪里?真是差在技术上了吗?那不是差在技术上那差在了哪里? 上面很多一连串的问题,没有把你搞晕吧!那就听我一一给您分析这个问

用心构筑文章 2万+

IMSL CNL 7.0.0 (x86-64)Crack

IMSL CNL 7.0.0 (x86-64)Crack intel的算法库破解文件,这是C++版本的破解文件

IDEA的使用指南

IDEA基于java的使用手册,可以最快速的上手,在使用中不断的丰富自己的使用技巧.

我们都曾是菜鸟

菜鸟就是新手,每个人不管干什么都是从菜鸟做成高手的,别管别人怎么说,认真干好每一件事,你离高手就不远了。

青春不老,奋斗不止! 5960

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

编程菜鸟and大神

“ 菜鸟”程序员和“大神”程序员差距在哪里 1.“菜鸟”和“大神” 刚刚走出就业的程序员,技术是刚刚起步的基点。那下面我们就聊一聊有关技术的东西。首先请您先想想这几个问题。现在社会上有很多程序员,CSDN就是我们程序员的家,那您是否可想过程序员为什么会有不同的水平?你又是哪一类的程序员?“菜鸟”程序员和“大神”程序员差在哪里?真是差在技术上了吗?那不是差在技术上那差在了哪里? ...

pf503603的博客 274

ET2012新版免狗免安装绿色软件

ET2012新版免狗免安祖昂绿色软件。,新界面,新视觉,

如何快速鉴别“菜鸟”级别和“大神”级别的程序员

点关注,不迷路;持续更新Java架构相关技术及资讯热文!!! 眼尖的朋友可能还看见了此博客页面左上角还有惊喜哟 很多公司在面试程序员的时候有的都不用笔试,直接谈上一段时间就能给出结论这个人技术能力是不是适合做,能拿到多少工资,识别程序员水平高低谈上几句话就能搞定 如何鉴别一个程序员水平的高低? 1. 编程基本功 直接用笔试题目或者面试的时候说几个在项目中遇到的常见语法细节,这种属于比较原始的...

Java_No01的博客 1415

盘点那些你见过最蠢的代码...

大家好,我是了不起作为程序员,我们都曾是菜鸟。无论是刚开始学习编程还是在职业生涯中,我们都会犯错。那些蠢蠢的错误,有时让我们感到尴尬,有时让我们发笑,但它们也是我们成长和进步的机会。或许你还记得自己曾经犯下的某些错误,它们可能已经成为你职业生涯中的一部分,成为你学习的里程碑。今天,让我们一起回顾一下那些蠢蠢的犯错,以及从中所得到的宝贵经验。

Saki_Python的博客 375

阿里“菜鸟”AI?

AI科技大本营 2390

“菜鸟”程序员和“大神”程序员差距在哪里?别告诉我你连菜鸟都不算!

又一个离别的季节过去,又有一批计算机的毕业生走上了自己奋斗的岗位。 一幕幕的场景就像一张张绚烂的剪贴画,串连成一部即将谢幕的电影,播放着我们的快乐和忧伤,记录着我们的青春和过往,也见证着我们的友谊和爱情! 这些记忆里,有记忆闪闪发亮。那些彩色的岁月,凝成水晶,在忙碌的日子里,它们是我们的资本,也是我们的慰藉。 “菜鸟”和“大神” 刚刚走出就业的程序员,技术是刚刚起步的基点。那下面我们就聊一聊有关技...

Andriodqin的博客 404

“菜鸟”程序员 VS “大神”程序员,我差点吓出了翔

据说在程序员个行业中一个大神程序员可以抵100个菜鸟程序员有时候,作用甚至超过100个程序员人人都渴望成为大神程序员每个公司都存在传说中的神他们像圣兽一样被人们爱戴下面我们就一起看看...

青春不老,奋斗不止! 853

菜鸟IPO折戟背后:估值大幅下降,阿里巴巴为“分拆之痛”买单

近日,阿里巴巴集团(下称“阿里巴巴”或“阿里”)发布公告,称其物流子公司菜鸟(同菜鸟物流、菜鸟网络)撤回在港交所的首次公开发行及上市申请,并计划收购菜鸟少数股东的股权和员工已归属的股权,总对价最高为37.5亿美元。与京东自建货仓与物流渠道的“重资产”供应链模式不同,阿里巴巴将菜鸟定义为物流体系中的“数据中枢”,不设立车辆、路线、物流和货仓,仅依赖于“通达系”快递公司,通过加盟模式下的“菜鸟驿站”掌握配送末端环节。也就是说,比起弥补员工和股东的“定军心”策略,阿里巴巴的做法更像是撤回IPO后的“及时止损”。

beiduocaijing的博客 6177

顺丰、菜鸟“较劲”末端物流

中国快递业务量已经连续8年居世界第一,且2022年仍将继续保持高速增长的态势。

liukuang110的博客 328

杭电“菜鸟杯”总结

12月18日,杭电菜鸟杯开赛。   这次学校的几个人没有集中比赛。jay回家了,在家里做。我在实验室一边。等到12点后才另有几个人过来,帮他们开了另一边的实验室。于是shadowright等就在另一边做了。还有其他的几个在宿舍做。   比赛开始后浏览了几道题,发现都是比较短的,难度还不是很确定,还没参加过菜鸟杯的比赛,老菜鸟杯的做过,自虐的那种。   于是看了第一题,粗略地写了一下,好像跟数

Human_CK的专栏 895
上一篇: dwg文件怎么打开?
下一篇: Python的简单介绍
黑客老许
博客等级 码龄8年 6171粉丝 1028原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址