Challenge: Compare Performance Over Time
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 6
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
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?
Чудово!
Completion показник покращився до 4.55
Challenge: Compare Performance Over Time
Свайпніть щоб показати меню
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 2. Розділ 6
single