08 Hands On Activity 222 ARG Delacruz

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Ruel Dela Cruz

BSIT 311

1.Using Mongo shell or this online terminal, create a database named MongoLab2 and
perform the following:

1.1.Create an embedded document with one-to-one relationship based on the given key
elements below and insert them in “emb_customer” collections.

This study source was downloaded by 100000809080396 from CourseHero.com on 01-09-2022 21:14:43 GMT -06:00

https://www.coursehero.com/file/89908369/08-Hands-On-Activity-222-ARGDelacruzdocx/
1.2.Create documents that have a structure of a reference data model with one-to-one
relationship based on the given key elements below and insert them in “ref_customer”
collections.

2. Perform the following:


2.1.Create an embedded document with one-to-many relationship based on the given
key elements below and insert them in “emb_student” collections.

This study source was downloaded by 100000809080396 from CourseHero.com on 01-09-2022 21:14:43 GMT -06:00

https://www.coursehero.com/file/89908369/08-Hands-On-Activity-222-ARGDelacruzdocx/
2.2.Create documents that have a structure of reference data model with one-to-many
relationship based on the given key elements below and insert them in “ref_student”
collections.

This study source was downloaded by 100000809080396 from CourseHero.com on 01-09-2022 21:14:43 GMT -06:00

https://www.coursehero.com/file/89908369/08-Hands-On-Activity-222-ARGDelacruzdocx/
3. Perform the following:
3.1. Insert the documents below in items collection. (Note: These will be the parent
documents.)
3.2. Insert the documents below in inventory collection. (Note: This will be the child
documents.)

This study source was downloaded by 100000809080396 from CourseHero.com on 01-09-2022 21:14:43 GMT -06:00

https://www.coursehero.com/file/89908369/08-Hands-On-Activity-222-ARGDelacruzdocx/
3.3.Using the aggregate method, combine the two related documents from item and
inventory collection by making the parent document as the main document; and the
child as sub-document.

This study source was downloaded by 100000809080396 from CourseHero.com on 01-09-2022 21:14:43 GMT -06:00

https://www.coursehero.com/file/89908369/08-Hands-On-Activity-222-ARGDelacruzdocx/
This study source was downloaded by 100000809080396 from CourseHero.com on 01-09-2022 21:14:43 GMT -06:00

https://www.coursehero.com/file/89908369/08-Hands-On-Activity-222-ARGDelacruzdocx/
Powered by TCPDF (www.tcpdf.org)

You might also like