Thanks for your replies.<br><br>I think stoleru's solution works fine for me. It doesn't matter which 50 rows from the<br>two SELECT queries will be retrieved. I can add an ORDER BY:<br><br>SELECT A, B, C FROM<br> (SELECT A, B, C<br> FROM T, S<br> WHERE ...<br> UNION<br> SELECT A, B, C<br> FROM T, P<br> WHERE ...)<br> WHERE rownum<=50 ORDER BY A<br><br>Note that the statement used in my case is more complicated than the one given<br>here, I have to write all attributes (A, B, C) instead of a single *, otherwise I get<br>an error:<br><br>Error: ORA-00918: column ambiguously defined<br><br>Mack