Секція 1. Розділ 25
single
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:
SELECT columns
FROM table
WHERE column_name IS NULL;
Let's illustrate this with an example:
123SELECT name FROM country WHERE region IS NULL;
Завдання
Swipe to start coding
Write an SQL query that returns the name and capital columns with no population provided.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 25
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат