Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For each of the following, you need to write a query and also show the output ( result returned from the shell ) submit a

For each of the following, you need to write a query and also
show the output (result returned from the shell) submit a pdf
file
, after preparing the queries, run them one by one and record
your work (short video, max 5 minutes, no need for audio)-
submit the video
Create a new database called: your firstName-familyName
Switch to the DB created in step 1
Create a new collection called: your firstName-collection
Write query to make sure that the collection was created
Add 5 persons to the collection; each one of them has the
following properties: name, university name, registration
year, student ID, and average (value from 0 to 100), one of
these entries must has your info
write a query to return all persons in the collection
write a query that return only 3 persons
write a query to return the top 3 persons based on their
average
write a query that return persons whose average is above 89
and who registered in university after 2021
10.update the person that has your info (based on your student
Id), change average instead from 100 scale to 4 by dividing
it by 25
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 33rd International Conference Dexa 2022 Vienna Austria August 22 24 2022 Proceedings Part 2 Lncs 13427

Authors: Christine Strauss ,Alfredo Cuzzocrea ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

3031124251, 978-3031124259

Students also viewed these Databases questions