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 Addresses Address ID 1 2 3 4 Pets License ID 1 2 3 4 5 6 Street 1231 Henry Street 45 Jones Ave. 567 Juniper

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

1 Expert Approved Answer
Step: 1 Unlock

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

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!