Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

MongoDB C100DBA Exam - Topic 8 Question 130 Discussion

What is the equivalent command in MongoDB for the following SQL query?SELECT * FROM posts WHERE author like "%john%"
A) db.posts.find( { author: /John/ } )
B) db.posts.find( { author: /AjohnA/ > )
C) db.posts.find( { $like: {author: /John/} } )
D) db.posts.find( { author: {$like: /John/} } )

MongoDB C100DBA Exam - Topic 8 Question 130 Discussion

Actual exam question for MongoDB's C100DBA exam
Question #: 130
Topic #: 8
[All C100DBA Questions]

What is the equivalent command in MongoDB for the following SQL query?

SELECT * FROM posts WHERE author like "%john%"

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters

Currently there are no comments in this discussion, be the first to comment!


Save Cancel