Oracle 12c / Top N rows, pagination
In older versions, limiting sorted data by the number of rows had to be implemented using a nested query. This first sorted the table, and only then was it possible to filter by count.
Even though Oracle Database version 12c was released sometime in mid-2013, its use in companies is still not a complete given. The following series of examples highlights some of its interesting features.
In older versions, limiting sorted data by the number of rows had to be implemented using a nested query. This first sorted the table, and only then was it possible to filter by count.
The option to define a PL/SQL function or procedure inside an SQL query might seem strange at first glance, but it has one significant advantage – the database does not need to switch context, which in certain cases leads to a massive increase in performance.
To use an array in SQL queries, it was previously necessary to create a “stored” type on the SQL server side and assign the appropriate rights… Read more
List of basic commands for defining data structures.