Create a database named Animals. Inside the database create a collection named MyPets Translate the following tables
Fantastic news! We've Found the answer you've been seeking!
Question:
- Create a database named Animals.
- Inside the database create a collection named MyPets
- Translate the following tables into JSON documents.
- Insert the documents into your collection Use the .find() function to show that the documents have been stored in the database
- Consider using the ObjectID for the primary key.
- There may be some room for interpretation/options, so you may want to justify your structures.
- Remember you want to mimic a 'natural' document format - makes things more readable
Related Book For
Concepts of Database Management
ISBN: 978-1285427102
8th edition
Authors: Philip J. Pratt, Mary Z. Last
Posted Date: