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.
A. $order
B. $sort
C. $asc
D. None of the mentioned
Answer:A
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.
A. $order B. $sort C. $asc D. None of the mentioned
Explanation:$sort takes a document that specifies the field(s) to sort by and the respective sort order. 5. Point out the wrong statement :