BC2402 Designing and Developing Databases Assignment Case – A simple clinic & Amazon Prime, Singapore

University Nanyang Technological University (NTU)
Subject BC2402: Designing and Developing

Week 8 Class Exercises – Basic Create Operations

Case: A simple clinic

Consider the following sample document (database = simple Clinic, collection = patients):

Case A simple clinic

Required:

  1. Create the above database and collection.
  2. Insert the above document into the collection.
  3. Insert 3 additional patient records (documents) with at least 1 history entry per patient.
  4. Test out your database with find().
  5. Find all patients who are older than 30 years old (or a value of your choice).
  6. Delete all patients who got a flu as a disease.

Hire a Professional Essay & Assignment Writer for completing your Academic Assessments

Native Singapore Writers Team

  • 100% Plagiarism-Free Essay
  • Highest Satisfaction Rate
  • Free Revision
  • On-Time Delivery

Case: Amazon Prime

Amazon Prime is a paid subscription program from Amazon that gives users access to additional services otherwise unavailable or available at a premium to regular Amazon customers. Services include same, one or two-day delivery and streaming music and video. In January 2020, Amazon reported that Prime had more than 150 million subscribers worldwide.

During May 2020, Amazon.com had over 2.5 billion combined desktop and mobile visits, up from 2.01 billion visits in February 2020. The platform is by far the most visited e-commerce property in the United States.

Some fun facts about Amazon

  1. 9 out of 10 consumers price check a product on Amazon.
  2. Amazon sells more than 12 million products.
  3. 95 million people have Amazon Prime memberships in the US.
  4. $1.4K is the average spent by Amazon Prime members each year.
  5. Amazon shipped over 5 billion items worldwide in 2017.

ERD

ERD

Sample Records

Customer
Customer ID Name
1000 Ben Choi
1001 Jayden Choi
1002 Cammy Soh
1004 Mason Greenwood
1005 Dean Henderson
Product
Product ID Product Name Price
50001 Scott Pick A Size Multi Purpose Towels 4.25
50002 Japanese Super Crispy Chicken 11.80
50003 Vegan Beyond Burger Plant Based Patties Beef 14.90
50004 Korean Honey Sweet Potato 9.90
50005 Premium Atlantic Salmon 1Kg 22.00
Order
Order ID Customer ID Order Date
1880001 1000 2020/01/21
1880002 1000 2020/01/22
1880003 1000 2020/01/23
1880004 1001 2020/01/22
1880005 1001 2020/01/23
1880006 1004 2020/01/24
1880007 1005 2020/01/25
Order Line  
Customer ID Order ID Product ID Quantity
1000 1880001 50001 2
1000 1880001 50003 1
1000 1880002 50002 2
1000 1880003 50004 4
1000 1880003 50005 2
1001 1880004 50003 1
1001 1880004 50004 1
1001 1880005 50002 2
1004 1880006 50004 1
1004 1880006 50005 1
1005 1880007 50002 2
1005 1880007 50003 1
1005 1880007 50001 2

Required:

  1. Create a MongoDB to capture the above records (database name = amazonPrime). You can use a maximum of 3 collections.
  2. Insert the records in the above tables into documents in each collection. You must observe the relationships depicted in the ERD, either by reference or embedded documents.
  3. Give a brief justification on your data model in a word document.

Buy Custom Answer of This Assessment & Raise Your Grades

Get Help By Expert

Database assignments like BC2402 can be tricky, especially when designing collections, embedding documents, and managing relationships. If you’re struggling to create databases for the simple clinic or Amazon Prime case, our experts at Singapore Assignment Help provide plagiarism-free, AI-free data management assignment help tailored to Singapore university standards. Get our best assignment help service today and secure high grades.

Answer

Looking for Plagiarism free Answers for your college/ university Assignments.

Ask Your Homework Today!

We have over 1000 academic writers ready and waiting to help you achieve academic success