Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Checking for NO Value | Filtering Data
Introduction to SQL
course content

Kurssisisältö

Introduction to SQL

Introduction to SQL

1. Retrieving Data
2. Sorting Retrieved Data
3. Filtering Data
4. Advanced Data Filtering
5. Aggregate Functions

book
Checking for NO Value

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:

sql

Let's illustrate this with an example:

123
SELECT name FROM country WHERE region IS NULL;
copy

Here is the country table we are working with:

Tehtävä

Swipe to start coding

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

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 3. Luku 6
toggle bottom row

book
Checking for NO Value

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:

sql

Let's illustrate this with an example:

123
SELECT name FROM country WHERE region IS NULL;
copy

Here is the country table we are working with:

Tehtävä

Swipe to start coding

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

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 3. Luku 6
Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Pahoittelemme, että jotain meni pieleen. Mitä tapahtui?
some-alt