How to add an offset in a \"select\" query in Oracle 11g.
I only know how to add the limit by e.g rownum <= 5
this question is not a duplicate, I already che
Use the function LAG or LEAD in oracle
The LAG function is used to access data from a previous row
The LEAD function is used to return data from the next row
Usage:-
LAG (value_expression [,offset] [,default]) OVER ([query_partition_clause] order_by_clause)
LEAD (value_expression [,offset] [,default]) OVER ([query_partition_clause] order_by_clause)
Please find the this link for examples