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

bookChallenge: Recently Hired Employees

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 3
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Recently Hired Employees

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 3
single

single

some-alt