Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Month-over-Month Revenue Growth | Period-over-Period Comparisons
SQL for Finance and Accounting

bookChallenge: Month-over-Month Revenue Growth

Uppgift

Swipe to start coding

  • Write a SQL query that calculates the revenue for each month using the revenue table.
  • For each month, also compute the change in revenue compared to the previous month.
  • Your result should include the following columns:
    • The month (as the first day of the month)
    • The total revenue for that month
    • The change in revenue compared to the previous month (can be NULL for the first month)
  • Use a window function to compare each month to its previous month.
  • Do not repeat or copy the code samples already provided in the chapter.
  • Order the results by month in ascending order.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 2
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Month-over-Month Revenue Growth

Svep för att visa menyn

Uppgift

Swipe to start coding

  • Write a SQL query that calculates the revenue for each month using the revenue table.
  • For each month, also compute the change in revenue compared to the previous month.
  • Your result should include the following columns:
    • The month (as the first day of the month)
    • The total revenue for that month
    • The change in revenue compared to the previous month (can be NULL for the first month)
  • Use a window function to compare each month to its previous month.
  • Do not repeat or copy the code samples already provided in the chapter.
  • Order the results by month in ascending order.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 2
single

single

some-alt