99

Year-over-Year Comparison

HardSUBSTRGROUP BYdate extraction

Problem Description

Write a SQL query to compare employee counts hired in each year.

Expected Columns

  • hire_year
  • employees_hired

Example Output

| hire_year | employees_hired | |-----------|-----------------| | 2016 | 1 | | 2017 | 1 | | 2018 | 2 | | 2019 | 3 | | 2020 | 3 | | 2021 | 2 | | 2022 | 2 | | 2023 | 1 |

Hints

Unlocks after 2 more attempts
Submit your solution to unlock hints
//#99 Year-over-Year Comparison
Hard

Loading schema...

Loading editor...

No results yet

Run a query to see results