每個使用者一行展示來電轉駁狀態SQL語句(HWHB)

2021-09-05 10:50:40 字數 4007 閱讀 9975

select mm.imsi,mm.msisdn,

case ss.cfu --開始判定cfu

when

0then

'x'when

1then nvl(tcfu.ftn,

'定製'

)else

'未知'

end cfu,

case ss.cfb --開始判定cfb

when

0then

'x'when

1then nvl(tcfb.ftn,

'定製'

)else

'未知'

end cfb,

case ss.cfnry --開始判定cfnry

when

0then

'x'when

1then nvl(tcfnry.ftn,

'定製'

)else

'未知'

end cfnry,

case ss.cfnrc --開始判定cfnrc

when

0then

'x'when

1then nvl(tcfnrc.ftn,

'定製'

)else

'未知'

end cfnrc,

case ss.cfd_cfb --開始判定cfdcfb

when

0then

'x'when

1then nvl(tcfd.ftn,

'覆蓋'

)else

'未知'

end cfd_cfb,

case ss.cfd_cfnry --開始判定cfdcfnry

when

0then

'x'when

1then nvl(tcfd.ftn,

'覆蓋'

)else

'未知'

end cfd_cfnry,

case ss.cfd_cfnrc --開始判定cfdcfb

when

0then

'x'when

1then nvl(tcfd.ftn,

'覆蓋'

)else

'未知'

end cfd_cfnrc

from xhwhb_2042_main mm,xhwhb_2042_ss ss,

(select imsi,ftn from xhwhb_2042_ss_act a1 where a1.bsg=

'ts10'

and a1.ss=

'cfu'

and a1.act=

1) tcfu,

(select imsi,ftn from xhwhb_2042_ss_act a1 where a1.bsg=

'ts10'

and a1.ss=

'cfb'

and a1.act=

1) tcfb,

(select imsi,ftn from xhwhb_2042_ss_act a1 where a1.bsg=

'ts10'

and a1.ss=

'cfnry'

and a1.act=

1) tcfnry,

(select imsi,ftn from xhwhb_2042_ss_act a1 where a1.bsg=

'ts10'

and a1.ss=

'cfnrc'

and a1.act=

1) tcfnrc,

(select imsi,ftn,act from xhwhb_2042_ss_act a1 where a1.bsg=

'ts10'

and a1.ss=

'cfd'

and a1.act=

1) tcfd

where mm.imsi=ss.imsi

and mm.imsi=tcfu.imsi(+)

and mm.imsi=tcfb.imsi(+)

and mm.imsi=tcfnry.imsi(+)

and mm.imsi=tcfnrc.imsi(+)

and mm.imsi=tcfd.imsi(

+)

select mm.imsi,mm.msisdn,

case ss.cfu --開始判定cfu

when

0then

'x'when

1then nvl(ssa.cfu,

'定製'

)else

'未知'

end cfu,

case ss.cfb --開始判定cfb

when

0then

'x'when

1then nvl(ssa.cfb,

'定製'

)else

'未知'

end cfb,

case ss.cfnry --開始判定cfnry

when

0then

'x'when

1then nvl(ssa.cfnry,

'定製'

)else

'未知'

end cfnry,

case ss.cfnrc --開始判定cfnrc

when

0then

'x'when

1then nvl(ssa.cfnrc,

'定製'

)else

'未知'

end cfnrc,

case ss.cfd_cfb --開始判定cfdcfb

when

0then

'x'when

1then nvl(ssa.cfd,

'覆蓋'

)end cfd_cfb,

case ss.cfd_cfnry --開始判定cfdcfnry

when

0then

'x'when

1then nvl(ssa.cfd,

'覆蓋'

)end cfd_cfnry,

case ss.cfd_cfnrc --開始判定cfdcfb

when

0then

'x'when

1then nvl(ssa.cfd,

'覆蓋'

)end cfd_cfnrc

from xhwhb_2042_main mm,xhwhb_2042_ss ss,

(select sa.imsi,

max(decode(sa.ss,

'cfu'

,sa.ftn,

null

)) cfu,

max(decode(sa.ss,

'cfb'

,sa.ftn,

null

)) cfb,

max(decode(sa.ss,

'cfnry'

,sa.ftn,

null

)) cfnry,

max(decode(sa.ss,

'cfnrc'

,sa.ftn,

null

)) cfnrc,

max(decode(sa.ss,

'cfd'

,sa.ftn,

null

)) cfd

from xhwhb_2042_ss_act sa

where sa.act=

1and sa.bsg=

'ts10'

and sa.ss in

('cfu'

,'cfb'

,'cfnry'

,'cfnrc'

,'cfd'

)group

by sa.imsi

) ssa

where mm.imsi=ss.imsi

and mm.imsi=ssa.imsi(

+)

antd多選下拉框一行展示

我們都知道antd的select多選時,如果下拉框寬度不足,則自動浮動到下一行將下拉框撐大,但是這回影響到頁面的整體布局。我們期望的效果是,下拉框只顯示一行的值,超出一行的部分自動隱藏。下面有2種方案來實現這個效果。設定下拉框的最大高度為一行的高度,然後超出的部分隱藏。ant select sele...

做一行愛一行

2013年9 月30日13 04 34 地點 公司 筆者 小菜 it界高手很多,謙虛進步自己 目前適合 android iphone 在除錯階段 內容 今天是九月的最後一天了,也沒有太多的心思的編寫 了,看看這個月的工作效率,確實不是很高。最近也在看一本書,可能很多的博友都知道這本書的 程式設計師你...

Repeater動態新增一行刪除一行

page language c autoeventwireup true codefile default2.aspx.cs inherits default2 cs public string fcode public string mystates protected void page loa...