Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Recently Hired Employees | Subqueries in E-commerce Analytics
Practice
Projects
Quizzes & Challenges
Quizzen
Challenges
/
Subqueries in SQL
Sectie 1. Hoofdstuk 9
single

single

bookChallenge: Recently Hired Employees

Veeg om het menu te tonen

Taak

Swipe to start coding

List all employees who were hired on or after the date obtained by subtracting 6 months from the fixed date '2021-01-02' using a subquery. Use the employees table and filter by hire_date so that only those hired on or after this calculated date are included. The subquery should determine the cutoff date by subtracting 6 months from '2021-01-02'.

  • Use a subquery to calculate the cutoff date as 6 months before '2021-01-02'.
  • Select all columns from the employees table for employees with a hire_date on or after this cutoff date.
  • Only include employees who meet this recent hire date criteria.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 1. Hoofdstuk 9
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

some-alt