Recent Articles

SQL,

Comparing Window Function Features by Database Vendors

We will round off the series on window functions with comparison of what database vendors offer. There are various mutations of window functions and every vendor supports a different subset…
Jiří Mauritz September 15, 2017
SQL,

Window Function ROWS and RANGE on Redshift and BigQuery

Frames in window functions allow us to operate on subsets of the partitions by breaking the partition into even smaller sequences of rows. SQL provides syntax to express very flexible…
Jiří Mauritz August 22, 2017
SQL,

Redshift's Window Functions Advanced use case – Sessionization

In the last post about the Window Functions, we introduced an advanced use case, in which the window functions help to make the query more readable, simple and efficient. The…
Jiří Mauritz August 14, 2017
SQL,

Redshift Window Functions Advanced Use Cases

Merging time-based events into periods Thanks to our previous posts about the window functions, Introduction to Window functions on Redshift and Data exploration with Window functions on Redshift, you should…
Jiří Mauritz August 3, 2017
SQL,

Data Exploration with Window Functions on Redshift

We have already introduced the main concept, syntax and simple examples of window functions applied to practical problems. In this post, we will go through some more advanced window functions…
Jiří Mauritz July 26, 2017
SQL,

Introduction to Window Functions on Redshift

Benefits of Window Functions Window functions on Redshift provide new scope for traditional aggregate functions and make complex aggregations faster to perform and simpler to write. Window functions also allow…
Jiří Mauritz July 11, 2017
spinner