Back Practice ↓

Related Practice & In-Depth Concepts

↑ Read lesson

Task:Write a query returning the `name`, `salary`, and the overall company average salary (aliased as `company_avg`) side-by-side for every employee. Use the OVER() clause to calculate the average without grouping the rows.
SQL Query Editor
No results returned. Press Run Query (or Cmd/Ctrl + Enter) to execute.