Question Bank
3705 approved questions from the community
What does the query `db.books.find().sort({x:1})` do?
What does the query `db.books.find({'name': /abc/})` do?
What is an aggregator in MongoDB?
When comparing embedded documents vs referenced documents in MongoDB, which is better?
What is the difference between find() and find_one() in MongoDB?
How can you export data from MongoDB? (Select all that apply)
What are the advantages of MongoDB? (Select all that apply)
In what scenarios would you prefer NoSQL/Mongo over SQL? (Select all that apply)
What are ways to optimize data retrieval in MongoDB? (Select all that apply)
What is a document in MongoDB?
What does the 'find()' method do in MongoDB?
What advantage do referenced documents have over embedded documents?
What is a collection in MongoDB?
What does the WHERE clause do in a SQL query?
What is the purpose of the GROUP BY clause?
What advantage does NoSQL have over SQL regarding data types?
SQL databases store data in tables with rows and columns.
What does ACID stand for in database context?
In SQL, using functions on columns in WHERE clauses (like YEAR(date_column)) is just as efficient as comparing the column directly.
How would you display which customer ordered which items?