Question: Write in MongoDB query that will find the total loyalty points from customes, average loyalty points, all items ordered ( include all information about every

Write in MongoDB query that will find the total loyalty points from customes, average loyalty points,
all items ordered (include all information about every order) and total amount spent for all age groups in the database.
Display only results where average loyalty points are greater than 5000. Sort the results by total loyalty points in
descending orfer. Make sure you name output fields correctly.
 Write in MongoDB query that will find the total loyalty points

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!