Challenge: Month-over-Month Revenue Growth
Compito
Swipe to start coding
- Write a SQL query that calculates the revenue for each month using the
revenuetable. - 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
NULLfor 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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 2
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 4.55
Challenge: Month-over-Month Revenue Growth
Scorri per mostrare il menu
Compito
Swipe to start coding
- Write a SQL query that calculates the revenue for each month using the
revenuetable. - 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
NULLfor 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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 2
single