What is the primary key, candidate keys, foreign keys, and non-key columns in these two tables? In which normal form is the logical design of the purchases database?

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

What is the primary key, candidate keys, foreign keys, and non-key columns in these two tables? In which normal form is the logical design of the purchases database?

**PURCHASE**

| Invoice Number | Invoice Date | Pre-Tax Amount | Customer ID |
|----------------|--------------|----------------|-------------|
| 1              | 2014-05-05   | 155.00         | 1           |
| 2              | 2014-05-07   | 203.00         | 2           |
| 3              | 2014-05-11   | 75.00          | 3           |
| 4              | 2014-05-15   | 67.00          | 4           |
| 5              | 2014-05-15   | 330.00         | 5           |
| 6              | 2014-05-16   | 25.00          | 1           |
| 7              | 2014-05-26   | 45.00          | 3           |
| 8              | 2014-06-06   | 445.00         | 1           |
| 9              | 2014-06-07   | 72.00          | 6           |

This table records purchase transactions, providing details such as the invoice number, date of purchase, the amount before tax, and the customer ID associated with each transaction. This data can be useful for tracking customer purchasing patterns and understanding sales trends over time.
Transcribed Image Text:**PURCHASE** | Invoice Number | Invoice Date | Pre-Tax Amount | Customer ID | |----------------|--------------|----------------|-------------| | 1 | 2014-05-05 | 155.00 | 1 | | 2 | 2014-05-07 | 203.00 | 2 | | 3 | 2014-05-11 | 75.00 | 3 | | 4 | 2014-05-15 | 67.00 | 4 | | 5 | 2014-05-15 | 330.00 | 5 | | 6 | 2014-05-16 | 25.00 | 1 | | 7 | 2014-05-26 | 45.00 | 3 | | 8 | 2014-06-06 | 445.00 | 1 | | 9 | 2014-06-07 | 72.00 | 6 | This table records purchase transactions, providing details such as the invoice number, date of purchase, the amount before tax, and the customer ID associated with each transaction. This data can be useful for tracking customer purchasing patterns and understanding sales trends over time.
# PURCHASE_ITE Data Table

This table presents a dataset with information about various purchase items, including invoice numbers, line numbers within those invoices, item numbers, and their corresponding retail prices. This data can be used to understand the structure and details of sales transactions.

| Invoice Number | Invoice Line Number | Item Number | Retail Price |
|----------------|---------------------|-------------|--------------|
| 1              | 1                   | 1           | 155.00       |
| 2              | 1                   | 2           | 120.00       |
| 3              | 1                   | 3           | 75.00        |
| 4              | 1                   | 6           | 35.00        |
| 4              | 2                   | 7           | 32.00        |
| 5              | 1                   | 4           | 240.00       |
| 5              | 2                   | 8           | 90.00        |
| 6              | 1                   | 10          | 25.00        |
| 7              | 1                   | 11          | 45.00        |
| 8              | 1                   | 5           | 175.00       |
| 8              | 2                   | 9           | 215.00       |
| 8              | 3                   | 12          | 55.00        |
| 9              | 1                   | 14          | 72.00        |

### Explanation of Columns:
- **Invoice Number**: A unique identifier for each invoice.
- **Invoice Line Number**: Indicates the line item within a specific invoice.
- **Item Number**: Identifies the specific item purchased.
- **Retail Price**: The cost of the item in retail terms.

This table is useful in educational settings for exercises related to database management, data analysis, and understanding transaction systems.
Transcribed Image Text:# PURCHASE_ITE Data Table This table presents a dataset with information about various purchase items, including invoice numbers, line numbers within those invoices, item numbers, and their corresponding retail prices. This data can be used to understand the structure and details of sales transactions. | Invoice Number | Invoice Line Number | Item Number | Retail Price | |----------------|---------------------|-------------|--------------| | 1 | 1 | 1 | 155.00 | | 2 | 1 | 2 | 120.00 | | 3 | 1 | 3 | 75.00 | | 4 | 1 | 6 | 35.00 | | 4 | 2 | 7 | 32.00 | | 5 | 1 | 4 | 240.00 | | 5 | 2 | 8 | 90.00 | | 6 | 1 | 10 | 25.00 | | 7 | 1 | 11 | 45.00 | | 8 | 1 | 5 | 175.00 | | 8 | 2 | 9 | 215.00 | | 8 | 3 | 12 | 55.00 | | 9 | 1 | 14 | 72.00 | ### Explanation of Columns: - **Invoice Number**: A unique identifier for each invoice. - **Invoice Line Number**: Indicates the line item within a specific invoice. - **Item Number**: Identifies the specific item purchased. - **Retail Price**: The cost of the item in retail terms. This table is useful in educational settings for exercises related to database management, data analysis, and understanding transaction systems.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education