A retail company stores customer purchase history in a relational database. The database contains a table 'transactions' with columns: transaction_id, customer_id, product_id, quantity, price, and transaction_date. A data analyst needs to create a report that shows total revenue per customer for the last quarter. Which data concept describes the relationship between customer_id and total revenue?
Trap 1: Foreign key
Foreign key links tables, not derived values.
Trap 2: Composite attribute
Composite attributes are made of sub-attributes, not derived.
Trap 3: Atomic attribute
customer_id is atomic, but total revenue is derived.
- A
Foreign key
Why wrong: Foreign key links tables, not derived values.
- B
Composite attribute
Why wrong: Composite attributes are made of sub-attributes, not derived.
- C
Derived attribute
Total revenue is calculated from other attributes, making it derived.
- D
Atomic attribute
Why wrong: customer_id is atomic, but total revenue is derived.