Challenge: Employee Bonus Eligibility
Compito
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'.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 2
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Fantastico!
Completion tasso migliorato a 4.17
Challenge: Employee Bonus Eligibility
Scorri per mostrare il menu
Compito
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'.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 2. Capitolo 2
single