Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Assign Default Bonuses | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL
Sectionย 1. Chapterย 26
single

single

bookChallenge: Assign Default Bonuses

Swipe to show menu

Task

Swipe to start coding

Write a query to display all columns from the employees table, but replace any NULL values in the bonus column with 500.

  • Select all columns from the employees table.
  • Replace any NULL value in the bonus column with 500.
  • Name the resulting column for bonus as bonus.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Sectionย 1. Chapterย 26
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt