Joining on rownum problem

Original text of this message