Challenge: Compare Performance Over Time
Compito
Swipe to start coding
Write a query to display each employee's performance score for every review and show the difference in score compared to their previous review.
- Select
employee_id,name,review_date, andscorefor each performance review. - Use the
LAGwindow function to access the previous review's score for the same employee, ordered byreview_date. - Calculate the difference between the current score and the previous score for each review.
- Name the difference column
score_difference. - Ensure results are ordered by
employee_idandreview_date.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 6
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Suggested prompts:
Can you explain that in simpler terms?
What are the main benefits of this approach?
Are there any common mistakes to avoid with this?
Fantastico!
Completion tasso migliorato a 4.55
Challenge: Compare Performance Over Time
Scorri per mostrare il menu
Compito
Swipe to start coding
Write a query to display each employee's performance score for every review and show the difference in score compared to their previous review.
- Select
employee_id,name,review_date, andscorefor each performance review. - Use the
LAGwindow function to access the previous review's score for the same employee, ordered byreview_date. - Calculate the difference between the current score and the previous score for each review.
- Name the difference column
score_difference. - Ensure results are ordered by
employee_idandreview_date.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 6
single