Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Month-over-Month Revenue Growth | Period-over-Period Comparisons
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Finance and Accounting

bookChallenge: Month-over-Month Revenue Growth

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Month-over-Month Revenue Growth

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
single

single

some-alt