Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in SQL by (55.6k points)

Can anyone explain how to check the null values in SQL?

1 Answer

0 votes
by (119k points)

We can use IS NULL and IS NOT NULL operators to check null values in SQL. Here is the syntax to use IS NULL and IS NOT NULL operators:

SELECT column_names
FROM table_name
WHERE column_name IS NULL| IS NOT NULL;

Here is the statement to return all the customers with a NULL value in the Address column:

SELECT Customer_Name, Address

FROM Customers

WHERE Address IS NULL;

You can go through this SQL Tutorial blog by Intellipaat for a detailed explanation of IS NULL and IS NOT NULL operators.

Related questions

0 votes
3 answers
0 votes
2 answers
0 votes
1 answer
asked Apr 2, 2021 in SQL by dev_sk2311 (45k points)
0 votes
1 answer
0 votes
2 answers
asked May 6, 2020 in SQL by Sudhir_1997 (55.6k points)

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...