Certified Data Engineer Associate Exam QuestionsBrowse all questions from this exam

Certified Data Engineer Associate Exam - Question 61


Which of the following commands will return the number of null values in the member_id column?

Show Answer
Correct Answer: C

To get the number of null values in the member_id column, use the command 'SELECT count_if(member_id IS NULL) FROM my_table;'. The function count_if checks for rows that meet a specific condition, in this case, whether member_id is NULL.

Discussion

5 comments
Sign in to comment
55f31c8Option: C
Nov 29, 2023

https://docs.databricks.com/en/sql/language-manual/functions/count_if.html

kishanuOption: C
Oct 20, 2023

count_if() can be used in this scenario

meow_akkOption: C
Oct 22, 2023

Ans C : https://docs.databricks.com/en/sql/language-manual/functions/count.html Returns A BIGINT. If * is specified also counts row containing NULL values. If expr are specified counts only rows for which all expr are not NULL. If DISTINCT duplicate rows are not counted.

bartftoOption: C
Jan 9, 2024

C: There are no 'null' and 'count_null' functions in SparkSQL

benni_aleOption: C
Apr 29, 2024

C is correct