Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Assign Default Bonuses | Null Functions
Functions in SQL

bookChallenge: Assign Default Bonuses

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 5. Luku 2
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Assign Default Bonuses

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 5. Luku 2
single

single

some-alt