You'll need to put your current query in subquery as below :
Oracle applies rownum to the result after it has been returned.You need to filter the result after it has been returned, so a subquery is required. You can also use RANK() function to get Top-N results. For performance try using NOT EXISTS in place of NOT IN . |
Technology Innovation - Blog para Programadores Esta é uma ideia que surgiu para divulgar as possíveis soluções que possam facilitar a vida aos programadores
domingo, fevereiro 23, 2014
How to get an TOP 10 for SQL in Oracle
Subscrever:
Mensagens (Atom)