title: Can there be a database-agnostic SQL query to fetch top N rows?
body: <p>We want to be able to select top N rows using a SQL Query. The target database could be Oracle or MySQL. Is there an elegant approach to this? (Needless to say, we're dealing with sorted data here.)</p>