Tier Duration
Hi All,
A DFF field (Tier) has been enabled at the assignment level. Employees change jobs over time, and each job may be associated with a different Tier.
We need to display sum of the Expected Tier duration (in years, months, and days) that an employee has spent in a particular Tier throughout their entire history of assignments.
Employee Number | Job | Tier | Assignment Start Date | Assignment End Date | Expected Tier Duration |
|---|---|---|---|---|---|
12345 | Job1 | 3A | 1-Jan-2026 | 29-Apr-2026 | 7 months |
12345 | Job2 | 3C | 16-Aug-2024 | 31-Dec-2025 | 20 months |
12345 | Job3 | 3C | 13-Feb-2024 | 15-Aug-2024 | 20 months |
12345 | Job6 | 3A | 10-Oct-2023 | 12-Feb-2024 | 7 months |
In a single SQL query we need to display above data and expected Tier Duration.