In SQL, how do you check if a value is NOT NULL? MCQ with Answer and Explanation

In SQL, how do you check if a value is NOT NULL?
A. IS NULL
B. != NULL
C. NOT NULL
D. IS NOT NULL
Answer: Option D
Solution (By JKSSB Mock Tests)
IS NOT NULL is the correct operator to test for non-NULL values.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Database Management System (DBMS) Questions

Question #1
Which of the following is NOT an aggregate function in standard SQL?
A. AVG()
B. SUM()
C. COUNT()
D. LENGTH()

Correct Answer: Option D


Explanation:
SUM(), AVG(), and COUNT() are aggregate functions operating on multiple rows, whereas LENGTH() is a scalar function acting on a single text value.

This question belongs to: Computer Database Management System (DBMS)
Question #2
What is the difference between a database and a database management system?
A. They are the same
B. Database is a file; DBMS is a table
C. A database is the data; DBMS is the software that manages it
D. DBMS is the data; database is the software

Correct Answer: Option C


Explanation:
A database is a collection of structured data, while a DBMS is the software used to interact with and manage that data.

This question belongs to: Computer Database Management System (DBMS)
Question #3
What is the purpose of the SQL DISTINCT keyword?
A. To return only unique rows in the result set
B. To group the results
C. To sort the result set
D. To filter rows based on a condition

Correct Answer: Option A


Explanation:
DISTINCT removes duplicate rows from the query result.

This question belongs to: Computer Database Management System (DBMS)