Microsoft SQL Server Database Quiz Questions

Chapter Name:Chapter 7 - DQL (Data Query Language)
Lesson Content Link:IS NULL Operator
Current Quiz Count:45
Progress
0%
Q1
True / False

The IS NULL operator can be used to check if a column has a NULL value.

Q2
True / False

The IS NULL operator can be used with the WHERE clause.

Q3
True / False

The IS NULL operator can be used to check if a column does not have a NULL value.

Q4
True / False

Using IS NULL in a SELECT statement will return all rows where the specified column has a NULL value.

Q5
True / False

The IS NULL operator can be used to compare two columns for NULL values.

Q6
True / False

IS NULL operator can be used in the ORDER BY clause.

Q7
True / False

You can use IS NULL in a JOIN condition.

Q8
True / False

IS NULL can be combined with AND and OR operators in SQL queries.

Q9
True / False

Using IS NULL in a GROUP BY clause is valid SQL syntax.

Q10
True / False

IS NULL operator can be used to update rows with NULL values.

Q11
True / False

The IS NULL operator can be used in a DELETE statement.

Q12
True / False

IS NULL operator can be used in subqueries.

Q13
True / False

You can use IS NULL to check for NULL values in a UNION query.

Q14
True / False

The IS NULL operator can only be used with numeric data types.

Q15
True / False

IS NULL can be used to filter NULL values in a result set.

Q16
Single Choice

Which query returns all employees who do not have a manager?

SQL Code
SELECT EmployeeID, EmployeeName
FROM Employees
WHERE ManagerID IS NULL;
Q17
Single Choice

Which query retrieves orders without a shipping date?

SQL Code
SELECT OrderID, OrderDate
FROM Orders
WHERE ShippingDate IS NULL;
Q18
Single Choice

Which query lists all products without a supplier?

SQL Code
SELECT ProductID, ProductName
FROM Products
WHERE SupplierID IS NULL;
Q19
Single Choice

Which query returns customers with no contact number?

SQL Code
SELECT CustomerID, CustomerName
FROM Customers
WHERE ContactNumber IS NULL;
Q20
Single Choice

Which query retrieves invoices without a payment date?

SQL Code
SELECT InvoiceID, InvoiceDate
FROM Invoices
WHERE PaymentDate IS NULL;
Q21
Single Choice

Which query retrieves employees with no assigned department?

SQL Code
SELECT EmployeeID, EmployeeName
FROM Employees
WHERE DepartmentID IS NULL;
Q22
Single Choice

Which query lists orders that have not been assigned a shipping address?

SQL Code
SELECT OrderID, OrderDate
FROM Orders
WHERE ShippingAddress IS NULL;
Q23
Single Choice

Which query retrieves students without a registered email?

SQL Code
SELECT StudentID, StudentName
FROM Students
WHERE Email IS NULL;
Q24
Single Choice

Which query returns suppliers without a contact person?

SQL Code
SELECT SupplierID, SupplierName
FROM Suppliers
WHERE ContactPerson IS NULL;
Q25
Single Choice

Which query lists projects without a start date?

SQL Code
SELECT ProjectID, ProjectName
FROM Projects
WHERE StartDate IS NULL;
Q26
Single Choice

Which query retrieves records with NULL values in multiple columns?

SQL Code
SELECT OrderID, CustomerID
FROM Orders
WHERE ShippingDate IS NULL
AND PaymentDate IS NULL;
Q27
Single Choice

Which query returns employees without a specified role?

SQL Code
SELECT EmployeeID, EmployeeName
FROM Employees
WHERE Role IS NULL;
Q28
Single Choice

Which query retrieves invoices with NULL values in critical columns?

SQL Code
SELECT InvoiceID, TotalAmount
FROM Invoices
WHERE TotalAmount IS NULL
OR PaymentDate IS NULL;
Q29
Single Choice

Which query lists customers without a postal code?

SQL Code
SELECT CustomerID, CustomerName
FROM Customers
WHERE PostalCode IS NULL;
Q30
Single Choice

Which query retrieves suppliers with NULL values in their address?

SQL Code
SELECT SupplierID, SupplierName
FROM Suppliers
WHERE Address IS NULL;
Q31
Multiple Choice

Which of the following queries retrieves orders with NULL values in both the ShippingDate and DeliveryDate columns? (Choose all that apply)

SQL Code
SELECT OrderID, OrderDate
FROM Orders
WHERE ShippingDate IS NULL
AND DeliveryDate IS NULL;
Q32
Multiple Choice

Which of the following queries lists customers who do not have a contact number? (Choose all that apply)

SQL Code
SELECT CustomerID, CustomerName
FROM Customers
WHERE ContactNumber IS NULL;
Q33
Multiple Choice

Which of the following queries returns products without a specified price? (Choose all that apply)

SQL Code
SELECT ProductID, ProductName
FROM Products
WHERE Price IS NULL;
Q34
Multiple Choice

Which of the following queries retrieves employees with NULL values in the ManagerID column? (Choose all that apply)

SQL Code
SELECT EmployeeID, EmployeeName
FROM Employees
WHERE ManagerID IS NULL;
Q35
Multiple Choice

Which of the following queries lists orders without a specified shipping method? (Choose all that apply)

SQL Code
SELECT OrderID, OrderDate
FROM Orders
WHERE ShippingMethod IS NULL;
Q36
Multiple Choice

Which of the following queries retrieves students without a registered address? (Choose all that apply)

SQL Code
SELECT StudentID, StudentName
FROM Students
WHERE Address IS NULL;
Q37
Multiple Choice

Which of the following queries returns suppliers with NULL values in the ContactNumber column? (Choose all that apply)

SQL Code
SELECT SupplierID, SupplierName
FROM Suppliers
WHERE ContactNumber IS NULL;
Q38
Multiple Choice

Which of the following queries lists projects without a specified end date? (Choose all that apply)

SQL Code
SELECT ProjectID, ProjectName
FROM Projects
WHERE EndDate IS NULL;
Q39
Multiple Choice

Which of the following queries retrieves orders with NULL values in critical columns? (Choose all that apply)

SQL Code
SELECT OrderID, TotalAmount
FROM Orders
WHERE TotalAmount IS NULL
OR PaymentDate IS NULL;
Q40
Multiple Choice

Which of the following queries lists employees without a specified department or manager? (Choose all that apply)

SQL Code
SELECT EmployeeID, EmployeeName
FROM Employees
WHERE DepartmentID IS NULL
OR ManagerID IS NULL;
Q41
Multiple Choice

Which of the following queries retrieves customers who do not have an email address or a phone number? (Choose all that apply)

SQL Code
SELECT CustomerID, CustomerName
FROM Customers
WHERE Email IS NULL
OR PhoneNumber IS NULL;
Q42
Multiple Choice

Which of the following queries lists suppliers who do not have a contact person or contact number? (Choose all that apply)

SQL Code
SELECT SupplierID, SupplierName
FROM Suppliers
WHERE ContactPerson IS NULL
OR ContactNumber IS NULL;
Q43
Multiple Choice

Which of the following queries returns products without a specified category or price? (Choose all that apply)

SQL Code
SELECT ProductID, ProductName
FROM Products
WHERE CategoryID IS NULL
OR Price IS NULL;
Q44
Multiple Choice

Which of the following queries lists orders without a specified total amount or payment date? (Choose all that apply)

SQL Code
SELECT OrderID, OrderDate
FROM Orders
WHERE TotalAmount IS NULL
OR PaymentDate IS NULL;
Q45
Multiple Choice

Which of the following queries retrieves employees who do not have a department or job title? (Choose all that apply)

SQL Code
SELECT EmployeeID, EmployeeName
FROM Employees
WHERE Department IS NULL
OR JobTitle IS NULL;