SQL817> select * from tb2;         A          B          C
---------- ---------- ----------
         1          2        100
         1          2        200
         1          3        100
         1          3        300
         1          3        500SQL817> select decode(rna,1,a,null) a,decode(rnb,1,b,null) b,c from 
  2  (
  3      select a,b,c,row_number() over(partition by a,b order by a,b) rnb,
  4               row_number() over(partition by a order by a) rna from tb2
  5  )
  6  /         A          B          C
---------- ---------- ----------
         1          2        100
                             200
                    3        100
                             300
                             500SQL817>