QuestionQ116Verified/Data Processing & TransformationsCopy linkReport a problemAsk AstroTutorSave questionWhich of the following commands will return the number of null values in the member_id column?ASELECT count(member_id) FROM my_table;BSELECT count(member_id) - count_null(member_id) FROM my_table;CSELECT count_if(member_id IS NULL) FROM my_table;DSELECT null(member_id) FROM my_table;Show AnswerAnswerExplanationThe count_if() function in Spark SQL counts rows where a specified condition is true. Using count_if(member_id IS NULL) counts all rows where member_id is null. The count() function ignores nulls by design, and count_null() is not a standard Spark function; null() and FROM HISTORY are not valid SQL constructs.Show comments1Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion