Monday, October 23, 2017

Finding nth row of a table

SELECT * FROM scott.EMP A WHERE &n = (SELECT COUNT(*) + 1 FROM scott.EMP B WHERE A.ROWID > B.ROWID)

No comments:

Post a Comment

Query to get the list of contexts for each formula type in Oracle Fusion HCM

select t.base_formula_type_name ,      ttl.formula_type_name ,      ttl.description ,      c.base_context_name from   ff_formula_types_b t ,...