[email protected] [email protected] Email [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] Age 28 35 33 25 34 44 26 30 Status Active Active Inactive Active Active Inactive Active Active Inactive ud. [A].aggregate([{ [Status: 'Active'}, $group_count: { $sum: 1 }, age: {[C]: 30}},{ $sort: age: [D]}},{ $out: [E]}}])
A- B- C- D- E-
Q5) The Table below was created using the UserData collection from the ud database in MongoDB. Assume that each Document maps to a row in the table, based on key-value pairs. You were given partial MongoDB code that will count the number active staff older than 30 displaying youngest to oldest. Write the result to the Older Than Thirty collection. Leanne Graham Ervin Howell Name Clementine Bauch Patricia Leback Kamen Dennis Schulist Kurtis Weissnat Maxime Nienow Glenna Reichert Fill in the blanks: Q5) The Table below was created using the UserData collection from the ud database in MongoDB. Assume that each Document
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am