NULL Values


  1. What will be the output of the following query?
    SELECT First_name
    FROM Employee
    WHERE emp_id != 6 OR emp_id IS NULL;











  1. 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


  1. What will be the output of the following query?
    SELECT First_name
    FROM Employee
    WHERE emp_id != 6;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Only those names whose emp_id is not equal to 6



  1. What will be the output of the following query?
    SELECT *
    FROM Employee
    WHERE emp_id = NULL;











  1. 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.


  1. What will be the output of the following query?
    SELECT * 
    FROM Student
    WHERE id IS NULL;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Only those columns whose id is not NULL



  1. What will be the output of the following query?
    SELECT *
    FROM Student
    WHERE id IS NULL;











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Only those columns whose id is NULL