Challenge: Employee Bonus Eligibility
Uppgift
Swipe to start coding
You need to determine bonus eligibility for each employee using nested CASE WHEN logic. Add a column named bonus to the result:
- If both
salaryis greater than or equal to 80000 andyears_at_companyis greater than or equal to 5, setbonusto'High'. - If only one of these conditions is met, set
bonusto'Medium'. - If neither condition is met, set
bonusto'None'.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 2
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Fantastiskt!
Completion betyg förbättrat till 4.17
Challenge: Employee Bonus Eligibility
Svep för att visa menyn
Uppgift
Swipe to start coding
You need to determine bonus eligibility for each employee using nested CASE WHEN logic. Add a column named bonus to the result:
- If both
salaryis greater than or equal to 80000 andyears_at_companyis greater than or equal to 5, setbonusto'High'. - If only one of these conditions is met, set
bonusto'Medium'. - If neither condition is met, set
bonusto'None'.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 2
single