Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Recently Hired Employees | Subqueries in Human Resources
Subqueries in SQL

bookChallenge: Recently Hired Employees

Aufgabe

Swipe to start coding

List all employees who were hired in the last 6 months using a subquery. Use the employees table and filter by hire_date so that only those hired within the last 6 months (relative to the current date) are included. The subquery should determine the date 6 months before the current date.

  • Use a subquery to calculate the cutoff date as 6 months before the current date.
  • 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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 3
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Recently Hired Employees

Swipe um das Menü anzuzeigen

Aufgabe

Swipe to start coding

List all employees who were hired in the last 6 months using a subquery. Use the employees table and filter by hire_date so that only those hired within the last 6 months (relative to the current date) are included. The subquery should determine the date 6 months before the current date.

  • Use a subquery to calculate the cutoff date as 6 months before the current date.
  • 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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 3
single

single

some-alt