Thanks sdstuber that is grate but if i add a row 'B','B','B','B' and i run your request i have this :
diffcnt col1 col2 col3 col4
1 A A A A
1 B B B B
2 A B B B
3 A B C C
3 A B D D
4 A B C D
4 A B D E
4 A B C E
and it should be:
diffcnt col1 col2 col3 col4
1 A A A A
2 A B B B
3 A B C C
4 A B C D
4 A B C E
3 A B D D
4 A B D E
1 B B B B
Main Topics
Browse All Topics





by: sdstuberPosted on 2008-11-20 at 07:13:57ID: 23004434
try this...
if you have more columns, just expand the decode and the connect by level limit
Select allOpen in new window