Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Checking for NO Value | Section
Practice
Projects
Quizzes & Challenges
Visat
Challenges
/
SQL Fundamentals
Osio 1. Luku 25
single

single

bookChecking for NO Value

Pyyhkäise näyttääksesi valikon

If a column doesn't contain any data, it's considered NULL. To determine if a value is NULL, you don’t just check for equality. Instead, you use the WHERE clause with IS NULL in a SELECT statement to find rows where the column’s value is NULL.

The syntax for it looks like this:

SELECT columns
FROM table 
WHERE column_name IS NULL;

Let's illustrate this with an example:

123
SELECT name FROM country WHERE region IS NULL;
copy
Tehtävä

Swipe to start coding

Write an SQL query that returns the name and capital columns with no population provided.

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 1. Luku 25
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

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

some-alt