In MongoDB, if documents in the collection had key names of fname, lname, age, email, and gender, in addition to the unique identifier, which values would be displayed in the output if the following command was entered: > db.collectionname.find({ "age" : { "$gt" : 18 }}, {fname: 1, lname:1, age:1})

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter5: Data Manipulation And Transaction Control
Section: Chapter Questions
Problem 1MC: Which of the following is a correct statement? a. A commit is issued implicitly when a user exits...
icon
Related questions
Question

In MongoDB, if documents in the collection had key names of fname, lname, age, email, and gender, in addition to the unique identifier, which values would be displayed in the output if the following command was entered:

> db.collectionname.find({ "age" : { "$gt" : 18 }}, {fname: 1, lname:1, age:1})

  A.

fname, lname, age, email, gender, _id

  B.

fname, lname and age

  C.

fname, lname, age, email, gender

  D.

fname, lname, age and _id

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Data Recovery Approaches
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning