PostgreSQL: Window functions

Work In Progress

Window functions. Beginning of Data Analysis in PostgreSQL.

Examples

SELECT
  id,
  name,
  department,
  started_date
  rank() over(partition by department order by salary desc) AS slowest
FROM employees