Challenge: Handle Missing Employee Data
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_statusto the result set. - Set
data_statusto'Complete'ifname,department,salary, andyears_at_companyare all notNULL. - Set
data_statusto'Incomplete'if any of these fields areNULL.
Рішення
Дякуємо за ваш відгук!
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Чудово!
Completion показник покращився до 4.17
Challenge: Handle Missing Employee Data
Свайпніть щоб показати меню
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_statusto the result set. - Set
data_statusto'Complete'ifname,department,salary, andyears_at_companyare all notNULL. - Set
data_statusto'Incomplete'if any of these fields areNULL.
Рішення
Дякуємо за ваш відгук!
single