NULL Values
- What will be the output of the following query?
SELECT First_name
FROM Employee
WHERE emp_id != 6 OR emp_id IS NULL;
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Only those names whose emp_id is not equal to 6 or emp_id with NULL values
- What will be the output of the following query?
SELECT First_name
FROM Employee
WHERE emp_id != 6;
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Only those names whose emp_id is not equal to 6
- What will be the output of the following query?
SELECT *
FROM Employee
WHERE emp_id = NULL;
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
An expression can never be equate to NULL that is why there will be no output.
- What will be the output of the following query?
SELECT *
FROM Student
WHERE id IS NULL;
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Only those columns whose id is not NULL
- What will be the output of the following query?
SELECT *
FROM Student
WHERE id IS NULL;
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
Only those columns whose id is NULL