task BETWEEN & ranges · warm-up
Hired during 2023
Return the name and hired_at of employees hired during 2023.
what to return
- Columns
namehired_atin this order- Rows
- 4 rows · any order
- Watch for
- Include 1 January 2023 and 31 December 2023. Dates are stored as YYYY-MM-DD text.
- Skill
- Filter an inclusive date range. Refresher: Comparisons & ranges →
expected result
Your query should return exactly these columns and values. Run it and compare.
expected result4 rows · any order
| name | hired_at |
|---|---|
| Greta Holm | 2023-01-09 |
| Jonas Weber | 2023-03-20 |
| Milo Novak | 2023-01-01 |
first 3 of 4 rows
data you can query
Sample rows from each table. Each column shows its type underneath; → marks a link to another table.
employees7 columns · 20 rows
| idinteger · key | nametext | manager_idinteger → employees | department_idinteger → departments | titletext | salaryreal | hired_attext |
|---|---|---|---|---|---|---|
| 1 | Ada Moreno | NULL | NULL | CEO | 250000 | 2019-03-01 |
| 2 | Bruno Costa | 1 | 1 | VP Engineering | 180000 | 2019-06-15 |
| 3 | Carmen Diaz | 1 | 2 | VP Sales | 150000 | 2020-01-10 |
| 4 | Dev Patel | 2 | 1 | Engineering Manager | 140000 | 2020-05-04 |
| 5 | Elif Kaya | 4 | 1 | Senior Engineer | 145000 | 2021-02-01 |
showing 5 of 20 rows
solution.sql
Hints and the answer are always available. Using them counts the question as solved with help.