Question
Use the insurance dataset to finish the following questions: Show the number of documents in the collection using Aggregation. Only select fields bmi, smoker, from
Use the insurance dataset to finish the following questions: Show the number of documents in the collection using Aggregation. Only select fields bmi, smoker, from the collection and only display 5 documents in the output. Show the number of documents who is a smoker with age larger than 30. Show the average charges for each region. Show the average charges for records with different number of children excluding those without children (children = 0). Show the average (charges+100) for records with different number of children excluding those without children (children = 0).
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started