Create a set of Tables in 3NF. Underline the Primary Key(s) for each table. Considering labeling foreign keys (fk) to aid in your design.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Complete a database design for both the Invoice_printed and Real Estate Agent Listings problems / cases. Display your normalized tables as as demonstrated in the following format: TABLENAME(Field 1 (pk), Field 2, Field 3........)

 

 

**Designing Relational Database Tables in Third Normal Form (3NF)**

When creating a database schema, it is crucial to organize tables efficiently to ensure data integrity and reduce redundancy. Below is an example of how to design tables for a real estate agent listing database in Third Normal Form (3NF). This design involves two primary tables: the Listing Table and the Agent Table. Primary keys are underlined to highlight their unique identifying role, and considerations for foreign key labeling are suggested.

---

**Real Estate Agent Listings:**

**Listing Table:**

- **_Listing ID_** (Primary Key)
- Address
- City
- Number of stories
- Frame type
- Basement? (Indicates presence or absence)
- Heating type
- Taxes
- School district
- Number of bedrooms
- Room Info (repeated 1-n times)
  - Width
  - Length
  - Flooring Type
- Agent Info (repeated 1-n times)
  - _Agent ID_ (Foreign Key)

**Agent Table:**

- Agent Name
- **_Agent ID_** (Primary Key)
- Address
- City
- Phone
- Listing Info (repeated 1-n times)
  - _Listing ID_ (Foreign Key)

---

In this schema:

- The **Listing Table** stores details about individual property listings. Each listing is uniquely identified by the **Listing ID**, and associated information like the number of bedrooms, address, and physical attributes of the property is included. _Agent ID_ serves as a foreign key to link agents managing the listings.

- The **Agent Table** includes data about real estate agents, identified uniquely by **Agent ID**. This table also features contact details and the _Listing ID_ that connects each agent with their associated property listings.

By adhering to 3NF, the database design minimizes duplicate data and potential anomalies during data operations, enhancing performance and consistency.
Transcribed Image Text:**Designing Relational Database Tables in Third Normal Form (3NF)** When creating a database schema, it is crucial to organize tables efficiently to ensure data integrity and reduce redundancy. Below is an example of how to design tables for a real estate agent listing database in Third Normal Form (3NF). This design involves two primary tables: the Listing Table and the Agent Table. Primary keys are underlined to highlight their unique identifying role, and considerations for foreign key labeling are suggested. --- **Real Estate Agent Listings:** **Listing Table:** - **_Listing ID_** (Primary Key) - Address - City - Number of stories - Frame type - Basement? (Indicates presence or absence) - Heating type - Taxes - School district - Number of bedrooms - Room Info (repeated 1-n times) - Width - Length - Flooring Type - Agent Info (repeated 1-n times) - _Agent ID_ (Foreign Key) **Agent Table:** - Agent Name - **_Agent ID_** (Primary Key) - Address - City - Phone - Listing Info (repeated 1-n times) - _Listing ID_ (Foreign Key) --- In this schema: - The **Listing Table** stores details about individual property listings. Each listing is uniquely identified by the **Listing ID**, and associated information like the number of bedrooms, address, and physical attributes of the property is included. _Agent ID_ serves as a foreign key to link agents managing the listings. - The **Agent Table** includes data about real estate agents, identified uniquely by **Agent ID**. This table also features contact details and the _Listing ID_ that connects each agent with their associated property listings. By adhering to 3NF, the database design minimizes duplicate data and potential anomalies during data operations, enhancing performance and consistency.
**Invoice Details**

**Company Information:**

- *Your Company Name*  
  Street Address  
  City, ST ZIP Code  
  Phone Number, Web Address, etc.

---

**Invoice Information:**

- **INVOICE**  
- **Date:** November 17, 2006  
- **Invoice #:** INV1000  

---

**Billing and Shipping Information:**

- **Bill To:**  
  C1007  
  ABC Company  
  123 Big Forest Valley  
  Ottawa, ON Z12345  
  Canada  

- **Ship To:**  
  SH Name 1  
  SH Address 1  
  SH CityState 1 SHZ12345  
  USA  

---

**Order Information:**

- **P.O. #:** O200612005  
- **Sales Rep. Name:** Sales1  
- **Ship Date:** 11/17/2006  
- **Ship Via:** UPS  
- **Terms:** Net 7  
- **Due Date:**  

---

**Product Details:**

| Product ID | Description             | Quantity | Unit Price | Line Total  |
|------------|-------------------------|----------|------------|-------------|
| P1003      | Motorola E815           | 10       | 420.00     | 4,200.00    |
| P1000      | Nokia 3220              | 12       | 199.99     | 2,399.88    |
| P1004      | Non-taxable item        | 5        | 200.00     | 1,000.00    |
| P1002      | It is a service         | 3.2      | 255.52     | 817.66      |
| P1006      | Motorola V3 Razr Black  | 10       | 500.00     | 5,000.00    |

---

**Financial Summary:**

- **Subtotal:** 13,417.54  
- **PST (6.50%):** 807.14  
- **GST (3.20%):** 397.36  
- **Shipping & Handling:** -  

**Total:** 14,622.04  
**Paid:** -  
**Total Due:** 14,622.04  

---

**Notes:**

(blank)

---

**Footer:**

*THANK YOU FOR YOUR BUSINESS!*
Transcribed Image Text:**Invoice Details** **Company Information:** - *Your Company Name* Street Address City, ST ZIP Code Phone Number, Web Address, etc. --- **Invoice Information:** - **INVOICE** - **Date:** November 17, 2006 - **Invoice #:** INV1000 --- **Billing and Shipping Information:** - **Bill To:** C1007 ABC Company 123 Big Forest Valley Ottawa, ON Z12345 Canada - **Ship To:** SH Name 1 SH Address 1 SH CityState 1 SHZ12345 USA --- **Order Information:** - **P.O. #:** O200612005 - **Sales Rep. Name:** Sales1 - **Ship Date:** 11/17/2006 - **Ship Via:** UPS - **Terms:** Net 7 - **Due Date:** --- **Product Details:** | Product ID | Description | Quantity | Unit Price | Line Total | |------------|-------------------------|----------|------------|-------------| | P1003 | Motorola E815 | 10 | 420.00 | 4,200.00 | | P1000 | Nokia 3220 | 12 | 199.99 | 2,399.88 | | P1004 | Non-taxable item | 5 | 200.00 | 1,000.00 | | P1002 | It is a service | 3.2 | 255.52 | 817.66 | | P1006 | Motorola V3 Razr Black | 10 | 500.00 | 5,000.00 | --- **Financial Summary:** - **Subtotal:** 13,417.54 - **PST (6.50%):** 807.14 - **GST (3.20%):** 397.36 - **Shipping & Handling:** - **Total:** 14,622.04 **Paid:** - **Total Due:** 14,622.04 --- **Notes:** (blank) --- **Footer:** *THANK YOU FOR YOUR BUSINESS!*
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 2 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY