Câu 2: C100DBA: MongoDB Associate Database Administrator
Consider a contacts collection that contains these documents:{“_id”: 1, “name”: “Poppy”, “birthday”: “03-09-1984”}{“_id”: 2, “name”: “Ashley”, “birthday”: “08-12-1990”}{“_id”: 3, “name”: “Cleo”, “birthday”: “11-02-1976”}What query returns the document where the field name is “Poppy”?
Nội dung câu hỏi
Consider a contacts collection that contains these documents:{“_id”: 1, “name”: “Poppy”, “birthday”: “03-09-1984”}{“_id”: 2, “name”: “Ashley”, “birthday”: “08-12-1990”}{“_id”: 3, “name”: “Cleo”, “birthday”: “11-02-1976”}What query returns the document where the field name is “Poppy”?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. db.contacts.find( { “name”: “poppy” } )
- B. db.contacts.find( { “name”: “Poppy” } )
- C. db.contacts.find( { “Poppy” : 1 } ) — đáp án hiện tại
- D. db.contacts.find( { “name.Poppy” : 1 } )
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.