Skip to content
This repository has been archived by the owner on Oct 16, 2021. It is now read-only.

[feature] implement window functions #30

Open
BohuTANG opened this issue Feb 15, 2020 · 0 comments
Open

[feature] implement window functions #30

BohuTANG opened this issue Feb 15, 2020 · 0 comments
Labels
P1 Medium priority type: feature

Comments

@BohuTANG
Copy link
Contributor

Summary

implement window functions

  SELECT
        EmpName, 
        DeptName,
        SUM(Salary) OVER( PARTITION BY DeptName ) AS SalaryByDept
    FROM @employees;
EmpName DeptName SalaryByDept
Noah Engineering 60000
Sophia Engineering 60000
Liam Engineering 60000
Mason Executive 50000
Emma HR 30000
Jacob HR 30000
Olivia HR 30000
Ava Marketing 25000
Ethan Marketing 25000
@BohuTANG BohuTANG added type: feature P1 Medium priority labels Feb 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P1 Medium priority type: feature
Projects
None yet
Development

No branches or pull requests

1 participant