Skip to main contentSkip to solution

Match List-I with List-II

List-IList-II
(A) The function that can be used with select clause only(I) single row
(B) The function that returns the number of values in the specific column ignoring the NULL values(II) multiple row
(C) The function that returns the number of records in the table(III) count(column)
(D) The function that can be used in select, where and order by clause(IV) count(*)

Solution

✅ Correct Option: 1
List IList II
(A) Function used with select clause only(II) Multiple row
(B) Returns the number of values in a column, ignoring NULL(III) count(column)
(C) Returns the number of records in the table(IV) count(*)
(D) Function used in select, where and order by clause(I) Single row

Multiple row (aggregate) functions such as SUM, AVG and COUNT work on a group of rows and return one value, so they can appear in select (and having) but not in where. Single row functions work on one row at a time, so they can be used in select, where and order by.

count(column) skips NULL values, while count(*) counts every row, including rows with NULLs.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question