Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Handle Missing Employee Data | Advanced CASE WHEN Logic
Mastering CASE WHEN in SQL

bookChallenge: Handle Missing Employee Data

Taak

Swipe to start coding

Write a query that returns all columns from the employees table, along with a new column named data_status. This column should contain the value 'Complete' if all fields (name, department, salary, years_at_company) for the employee are not NULL, and 'Incomplete' if any of these fields are NULL.

  • Add a column called data_status to the result set.
  • Set data_status to 'Complete' if name, department, salary, and years_at_company are all not NULL.
  • Set data_status to 'Incomplete' if any of these fields are NULL.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 5
single

single

Vraag AI

expand

Vraag AI

ChatGPT

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

close

bookChallenge: Handle Missing Employee Data

Veeg om het menu te tonen

Taak

Swipe to start coding

Write a query that returns all columns from the employees table, along with a new column named data_status. This column should contain the value 'Complete' if all fields (name, department, salary, years_at_company) for the employee are not NULL, and 'Incomplete' if any of these fields are NULL.

  • Add a column called data_status to the result set.
  • Set data_status to 'Complete' if name, department, salary, and years_at_company are all not NULL.
  • Set data_status to 'Incomplete' if any of these fields are NULL.

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 2. Hoofdstuk 5
single

single

some-alt