- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
first_value(case when t.kusl='41' and t.kusl=t.ku then t.sq_room
when t.kusl='03' and t.kusl=t.ku then t.sq_room
when t.kusl='42' and t.kusl=t.ku then t.sq_room
when t.kusl='46' and t.kusl=t.ku then t.sq_room
when t.kusl='36' and t.kusl=t.ku then t.sq_room
when t.kusl='47' and t.kusl=t.ku then t.sq_room
else null end ignore nulls)
over (partition by t.rn, t.kodd order by case when t.kusl='41' then 1
when t.kusl='03' then 2
when t.kusl='42' then 3
when t.kusl='46' then 4
when t.kusl='36' then 5
when t.kusl='47' then 6
else 7 end
rows between unbounded preceding and unbounded following)
Комментарии (0) RSS
Добавить комментарий