db.customers.find({email: “nicoleanderson@hotmail.com”})
username: ‘millerrenee’,
db.customers.find({“email” : “nicoleanderson@hotmail.com”},{username:1,_id:0})
- db.customers.find({“email”: “nicoleanderson@hotmail.com”})
Answer = millerrenee
2)db.movies.find({“title”: “The Kid Brother”})
Answer = 82
- 1746
username: ‘millerrenee’,
name: ‘Joshua Parker’
1 -username: ‘millerrenee’,
2 -the movie title “The Kid Brother” runtime is 82
Joydeep_A
(Joydeep A)
84
1.millerrenee
rrhgcvjbknlj;k’l
lkjhkl./,
db.movies.find({“title” : “The Kid Brother”},{runtime:1,_id:0})
Q3) transaction_count: 94
ques 2 solution runtime: 82
2.db.movies.find({“title” : “The Kid Brother”},{runtime:1,_id:0})
82
Satyam
(Satyam Gupta)
97
Hackathon Hints Using Aggregation!
Hey folks, here are some hints to help you in the hackathon:
-
$match
-
$match with $project
-
use $gt and $lt in $match
-
using $match you can use ”customer.email”
-
use $match and $count
-
use $match, $and, $gt and $lt
-
$sort and $limit
-
use $match, $group and $count
-
use $mod to find the last digits
-
use $and, $project and comparison operators
2 Likes
Suraj_K1
(Suraj K)
101
1.millerrenee
2. 82
3.1746
5.122
6.
1)db.customers.find({“email”: “nicoleanderson@hotmail.com”})
ans:millerrenee
2)db.movies.find({“title”: “The Kid Brother”})
ans:82
3)1746
4) 765
5)db.posts.countDocuments({“title”: “Bill of Rights”})
ans : 142
6)853
8)db.restaurants.countDocuments({“borough”: “Bronx”})
ans: 2338