Learn SQL By Doing - OVER Clause in Queries Online

PHOTO EMBED

Wed Apr 12 2023 04:27:05 GMT+0000 (Coordinated Universal Time)

Saved by @vnmshenoy #undefined

SELECT first_name,

last_name,

salary,

avg(salary) over()

from employee 

where department_id in (1,2,3)
content_copyCOPY

for all rows in the query result thats important

https://learnsql.com/track/advanced-sql/course/window-functions/over/over-and-where/range-of-over