Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Follow these steps: Create a word document called taskCRUD ( you can use either Microsoft Word or Google Docs ) . Add screenshots of your
Follow these steps:
Create a word document called taskCRUD you can use either Microsoft
Word or Google Docs Add screenshots of your command line interface
CLI to provide evidence that you have successfully carried out every
instruction specified in this task.
After adding all the required information and screenshots, save your Word
or Google document as a PDF file in your Dropbox.
In the database you created in your previous task, do the following using the
Mongo shell:
Add a collection called cars and add at least five documents to your
collection. Assume that you will have some of the following
information for each car you add to your collection: The model, make,
colour, registr ation number, owner, and address.
Include another document that contains the following information:
Model:
Make: Ford Fiesta
Owner: Sue Bailey
Registr ation: ABC GP
Address: Main Road, Johannesburg, South Africa.
Once you have added all the cars to your database, display all the
documents you have added.
Assume that Sue Bailey moves. Update her address to Maureen Street,
Bluewater Bay, Port Elizabeth, South Africa.
Now assume that Sue marries and her surname changes to Smith. Update
your database accordingly.
Display all cars older than five years.
Create another document where there is another Ford Fiesta owned by
someone called Sue Smith.
Our original Sue Smith Sue Bailey has her car scr apped. Remove the
document that described her car from your database. Be sure to remove
only her document!
Imagine that you would like to store all the previous owners for a specific
car. Add a document to a database that does this. The selected car should
have the names of at least three previous owners
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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