Question: 33. Does the following Mongodb code is correct? db.employee.aggregate([ { $group: averageSalary: { Savg: $salary }, maxSalary: { $max: $salary }, minSalary: { $min: Ssalary

33. Does the following Mongodb code is correct? db.employee.aggregate([ \{ \$group: averageSalary: \{ Savg: "\$salary" \}, maxSalary: \{ \$max: "\$salary" \}, minSalary: \{ \$min: "Ssalary" \} \}) a) Correct b) Not correct 34. Does the following Mongodb code is correct? db.employee.aggregateq[ Ssort:\{"_id":1\} \$group: \{ id : "\$dno", totalSalary: \{Ssum: "Ssalary" \} j) a) Correct b) Not correct 35. Does the following Mongodb code is correct? db.employee.aggregate([ \{ Sgroup : \{ id : "Sdno", count: \{\$sum: 1} \}, Smatch: { count: {$gt:4}}, \$sort:\{"_id":1\} \} ]) a) Correct b) Not correct 6
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
