Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikaremi/sql_window_functions
Using window functions in SQL server
https://github.com/mikaremi/sql_window_functions
Last synced: about 1 month ago
JSON representation
Using window functions in SQL server
- Host: GitHub
- URL: https://github.com/mikaremi/sql_window_functions
- Owner: Mikaremi
- Created: 2024-08-17T08:31:25.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-17T08:46:29.000Z (6 months ago)
- Last Synced: 2024-08-17T09:43:14.009Z (6 months ago)
- Language: TSQL
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SQL_WINDOW_FUNCTIONS
Using window functions in SQL serverWindow functions operate on a set of rows and return a single aggregated value for each row. The term Window describes the set of rows in the database on which the function will operate. We define the Window (set of rows on which functions operates) using an OVER() clause.
## Types of window functions.
* Aggregate Window Functions
(SUM(), MAX(), MIN(), AVG(). COUNT())
* Ranking Window Functions
(RANK(), DENSE_RANK(), ROW_NUMBER(), NTILE())
* Value Window Functions
(LAG(), LEAD(), FIRST_VALUE(), LAST_VALUE())