Grouping the output

These questions are all about grouping your data together.

To complete them you will need to know The following commands: nth_value, ntile, lag, lead,

Questions: