Изменения зарплаты в первые 90 дней работы
Questions like this come up in interviews at Т-Банк
Level: JuniorTopic: JOIN50 XP
Instructions
Найдите изменения зарплаты (salary_history), которые произошли в первые 90 дней работы сотрудника: changed_at строго позже hired_at и не позже hired_at + 90 дней включительно. Учитывайте только сотрудников, принятых (hired_at) не раньше 1 января 2024 и строго раньше 1 января 2025. Выведите id сотрудника, name, hired_at, changed_at и salary (новую зарплату). Порядок строк не важен.
not translated yetHints
Each next one is more detailed and costs more
Query
Result
Click Run to see the query result, or Check to submit your solution.
Dataset schema
Exactly oneZero or oneZero or more
Table relationships
- N:1Many-to-one
employees.→department_id departments.id - N:1Many-to-one
employees.→manager_id employees.id - N:1Many-to-one
departments.→parent_id departments.id - N:1Many-to-one
salary_history.→employee_id employees.id
Table data
PostgreSQL
Select a table in the diagram or list to view its rows.