Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Data Engineer Associate All Questions

View all questions & answers for the Certified Data Engineer Associate exam

Exam Certified Data Engineer Associate topic 1 question 137 discussion

Actual exam question from Databricks's Certified Data Engineer Associate
Question #: 137
Topic #: 1
[All Certified Data Engineer Associate Questions]

Identify how the count_if function and the count where x is null can be used

Consider a table random_values with below data.

What would be the output of below query?
select count_if(col > 1) as count_a. count(*) as count_b.count(col1) as count_c from random_values col1
0
1
2

NULL -
2
3

  • A. 3 6 5
  • B. 4 6 5
  • C. 3 6 6
  • D. 4 6 6
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
jimboslims
1 month ago
table random_values with data not provided. there is no screenshot of the table.
upvoted 2 times
renshoo_shimasho
3 weeks, 5 days ago
It's a formatting issue. The table has exactly 1 column named "col1". The power of adding in a carriage return and line feed. Definitely get why it was difficult to figure out.
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...