over用法

select b.blyjzj||'''' from ( 

select row_number() over(partition by sqid order by blsj  nulls last) as nm,t.*

  from xzxk_gzlkz_blyjb t

 where t.hjdyid = 'jfqr'

   and blyj = '本環節超過5個工作日,系統自動暫停' ) b where b.nm<>1;


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章