Ребята, как можно решить эту ..., не используя partition by ???
select
lag(null,1,x) over (partition by least(x,y,z),greatest(x,y,z), decode(x,least(x,y,z),decode(y,greatest(x,y,z),z,y),greatest(x,y,z),decode(y,least(x,y,z),z,y),x) order by x,y,z) xx
,lag(null,1,y) over (partition by least(x,y,z),greatest(x,y,z), decode(x,least(x,y,z),decode(y,greatest(x,y,z),z,y),greatest(x,y,z),decode(y,least(x,y,z),z,y),x) order by x,y,z) yy
,lag(null,1,z) over (partition by least(x,y,z),greatest(x,y,z), decode(x,least(x,y,z),decode(y,greatest(x,y,z),z,y),greatest(x,y,z),decode(y,least(x,y,z),z,y),x) order by x,y,z) zz
from (
select 'abс' x, 'bg' y, 'fg' z
from dual
union all
select 'rr' x, 'po' y, 'en' z
from dual
union all
select 'fg' x, 'bg' y, 'abс' z
from dual
)
order by x,y,z;
Буду рад любым направлениям)