PostgreSQL ORDER BY, LIMIT, and OFFSET make it easier to organize and control query results, with ORDER BY being especially ...
I have an existing stored procedure that currently has a default TOP (@numRows) with a default set to limit the record set if no value is provided.