100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Nora's Bagel Bin Database Blueprints Data Management - Applications - VHT2 A. $12.49   Add to cart

Exam (elaborations)

Nora's Bagel Bin Database Blueprints Data Management - Applications - VHT2 A.

 2 views  0 purchase
  • Course
  • Institution

Nora's Bagel Bin Database Blueprints Data Management - Applications - VHT2 A. Nora’s Bagel Bin Database Blueprints First Normal Form (1NF) BAGEL ORDER PK Bagel Order ID PK Bagel ID Order Date First Name Last Name Address 1 Address 2 City State Zip Mobile Phone Deli...

[Show more]

Preview 3 out of 20  pages

  • February 21, 2024
  • 20
  • 2023/2024
  • Exam (elaborations)
  • Questions & answers
avatar-seller
Nora's Bagel Bin
Database Blueprints Data
Management - Applications -
VHT2
A.
Nora’s Bagel Bin Database Blueprints
First Normal Form (1NF)

BAGEL ORDER
PK Bagel Order ID
PK Bagel ID
Order Date
First Name
Last Name
Address 1
Address 2
City
State
Zip
Mobile Phone
Delivery Fee
Bagel Name
Bagel Description
Bagel Price
Bagel Quantity
Special Notes

,The table is in the First Normal form, as it satisfies the following requirements:

• Have a unique identifier (primary key)
• Don’t have any repeating columns
• Don’t have any columns that hold more than value

A composite primary key is created with Bagel Order ID and Bagel ID as the unique identifier for the records in the table above.



A1.
Second Normal Form (2NF)
BAGEL ORDER BAGEL ORDER LINE ITEM BAGEL
PK Bagel Order ID PK / FK Bagel Order ID PK Bagel ID
Order Date 1:M PK / FK Bagel ID M:1 Bagel Name
First Name Bagel Quantity Bagel Description
Last Name Bagel Price
Address 1
Address 2
City
State
Zip
Mobile Phone
Delivery Fee
Special Notes

, The tables are in the Second Normal form, as it satisfies the following requirements:

• It is in the 1st NF.
• Each non-key attribute is fully functionally dependent on the primary key.

The table is reduced into 2nd normal form by splitting the BAGEL ORDER table into BAGLE ORDER LINE ITEM with Bagel Order ID,
Bagel ID, Bagel Quantity as its attributes; and BAGEL table with Bagel ID, Bagel Name, Bagel Description, and Bagel Price as its
attributes. It ensures that the tables are in 1st NF and all non-key attributes are fully functionally dependent on the primary key.

The cardinality of the relationship between two tables:

• From the tables BAGEL ORDER and BAGLE ORDER LINE ITEM, reading from left to right, there can be many line items for
every order. Reading from right to left, the table indicates that each line item is associated with only one order. Thus,
there exists a One-to-Many relationship between the tables.

• From the tables BAGLE ORDER LINE ITEM and BAGEL, reading from left to right, it says there can be only one bagel for
every line item. Reading from right to left, the table indicates that each bagel is associated with multiple line items. Thus,
a Many-to-One relationship exists between the tables.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller LectDan. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

76658 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.49
  • (0)
  Add to cart