You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Window/Analytic Functions would be a great addition on AlaSQL #898
Most modern relational database querying languages have window/analytic functions. These are very similar to aggregate functions, except that window functions don't alter the granularity of the dataset.
An aggregate function looks like this:
SELECT
product
, MAX(earnings) as highest_earnings
FROM products
GROUP BY product;
A similar analytic function would look like this:
SELECT
product
, earnings
, MAX(earnings) OVER(PARTITION BY product) as highest_earnings
FROM products;
There's a lot of value of these as the alternative would require much longer and convoluted lines of code.
changed the title [-]Window/Analytics Functions would be a great addition on AlaSQL[/-][+]Window/Analytic Functions would be a great addition on AlaSQL[/+]on Jul 3, 2017
Activity
[-]Window/Analytics Functions would be a great addition on AlaSQL[/-][+]Window/Analytic Functions would be a great addition on AlaSQL[/+]