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
- 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
Pet Owners: RecordID 1 2 3 4 5 6 Last Name Simpsons Simpsons Smits Peters Partridge Wanderer First Names Homer Marge Lisa Bart Homer Marge Henry Lucy Philip Jane Address ID 1 1 2 3 4 License ID 1 2 3,4 5 6
Step by Step Solution
There are 3 Steps involved in it
To accomplish this task well first create a MongoDB database named Animals within which well have a collection named MyPets Well then translate the pr... View full answer
Get step-by-step solutions from verified subject matter experts
