Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Checking for NO Value | Section
Practice
Projects
Quizzes & Challenges
Quizer
Challenges
/
SQL Fundamentals
Seksjon 1. Kapittel 25
single

single

bookChecking for NO Value

Sveip for å vise menyen

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
Oppgave

Swipe to start coding

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

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 25
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

some-alt