Deviopath › PostgreSQL

Average Salary

Easy · Aggregation

AVG(column) returns the average. It often has many decimal places, so wrap it in ROUND(value, 2) to keep two.

Return one row with one column, avg_salary: the average salary of all employees, rounded to 2 decimal places.

Next: Cheapest and Priciest