Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started