Challenge: Salary Progression Analysis
Tâche
Swipe to start coding
Write a query to analyze how each employee's current salary compares to the earliest salary in their department. Your query must return the following columns for each employee:
employee_idnamedepartmentsalary- The earliest salary in the employee's department, based on the earliest
hire_date - The difference between the employee's salary and the department's earliest salary.
Steps:
- Use a window function to find the earliest salary in each department, ordered by
hire_date. - Calculate the difference between each employee's salary and the department's earliest salary.
- Return all required columns for each employee.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 7
single
Demandez à l'IA
Demandez à l'IA
Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion
Génial!
Completion taux amélioré à 4.55
Challenge: Salary Progression Analysis
Glissez pour afficher le menu
Tâche
Swipe to start coding
Write a query to analyze how each employee's current salary compares to the earliest salary in their department. Your query must return the following columns for each employee:
employee_idnamedepartmentsalary- The earliest salary in the employee's department, based on the earliest
hire_date - The difference between the employee's salary and the department's earliest salary.
Steps:
- Use a window function to find the earliest salary in each department, ordered by
hire_date. - Calculate the difference between each employee's salary and the department's earliest salary.
- Return all required columns for each employee.
Solution
Tout était clair ?
Merci pour vos commentaires !
Section 2. Chapitre 7
single