windowing functions sql code example Example: window functions in sql --see here: https://mode.com/sql-tutorial/sql-window-functions/