Explanation:$avg returns the average value of the numeric values that result from applying a specified expression to each document in a group of documents that share the same group by key. 3. Which of the following ignores non numeric values ?
A. $order
B. $sum
C. $asc
D. None of the mentioned
Answer:A
Explanation:$avg returns the average value of the numeric values that result from applying a specified expression to each document in a group of documents that share the same group by key. 3. Which of the following ignores non numeric values ?
A. $order B. $sum C. $asc D. None of the mentioned
Explanation:$sum returns a sum for each group. Ignores non-numeric values. 4. When using $first in a $group stage, the $group stage should follow a _______ stage to have the input documents in a defined order.