Home / CSE MCQs / SQL Server MCQs :: Discussion

Discussion :: SQL Server MCQs

  1. With SQL, how can you return the number of not null records in the "Persons table ?
  2. A.
    SELECT COUNT() FROM Persons
    B.
    SELECT COLUMNS() FROM Persons
    C.
    SELECT COLUMNS(*) FROM Persons
    D.
    SELECT COUNT(*) FROM Persons

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    COUNT(column_name) is used to count the number of rows of a table where column name is a column that does not allow NULL values.


Be The First To Comment