The LIMIT keyword can be used to select the first N records in PostgreSQL.
Example:
SELECT * FROM Employee ORDER BY Salary DESC LIMIT 5
Here, the Employee is the name of the table that contains employee data.
ORDER BY command arranges the data in descending order based on the salary of employees.
LIMIT keyword used with the number 5 prints the first 5 or the top 5 records present in the Employee table.