Challenge: Salary Progression Analysis
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 7
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Genial!
Completion tasa mejorada a 4.55
Challenge: Salary Progression Analysis
Desliza para mostrar el menú
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 7
single