Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

windows aggregate functions in postgresql

SELECT depname, empno, salary, avg(salary) OVER (PARTITION BY depname) FROM empsalary;
Source by www.postgresql.org #
 
PREVIOUS NEXT
Tagged: #windows #aggregate #functions #postgresql
ADD COMMENT
Topic
Name
8+5 =