Examining nearby rows

Question:

To analyze stocks effectively, we need to calculate the average growth rate of each stock, along with the stock just after it and the stock just before it. The first and last stocks are intended to have an average growth rate of 2 stocks, not 3.

Return: name, growth, average_dividend_growth

Order by: growth

Show Table
Show Desired Output

Query Window:

Click me!

Show Hint
Show Answer

Your output: