Database Reference
In-Depth Information
Below is some sample data from the
Title
entity. Write the MongoDB statements to insert
this data into the collection
Title
. Then remove
FruITion
. Then update the page count for
Data Quality Assessment
to
350
. Then view all of the data. See Appendix A for the answer.
Title Name
Page Count
Publication Year
Author
FruITion
100
2010
Chris Potts
Data Quality Assessment
400
2009
Arkady Maydanchik
Data Modeling Theory and Practice
300
2008
Graeme Simsion
Key Points
•
To add one or more documents to a collection, use the insert( ) function.
•
To retrieve one or more documents from a collection, use the find( ) function.
•
To modify one or more documents in a collection, use the update( ) function.
•
To delete one or more documents in a collection, use the delete( ) function.
Although the basic functionality was covered in this chapter, there is a lot more to learn about MongoDB
including more functions, more operators, and knowing the efficiency tradeoffs for each option.