FINAL EXAM number 6

I don’t know what’s wrong with my query, it results to 0 documents. Been at this for hours.

db.movies.find( { $and: [ { “cast”: { $in: [“Jack Nicholson”,“John Huston”] } } , {“mpaaRating” : “R” }, { “viewerRating”: { $gt: 7 } } ] } )

Hi @regine_erika_30557,

Can you please make sure you are connected to the right database before running the query?

In order to use the video database, please use the command mentioned below.

use video

Hope it helps!

Thanks,
Shubham Ranjan
Curriculum Support Engineer