201k views
1 vote
Which of the following attributes in the Cash Receipts table would most likely be a foreign key?

A. cash receipt number
B. customer check number
C. customer number
D. cash receipt date

User XpressGeek
by
7.9k points

1 Answer

3 votes

Final answer:

In a Cash Receipts table, 'customer number' is most likely to be used as a foreign key to establish a relationship with a Customers table, enabling data integrity across the database. Option C is correct.

Step-by-step explanation:

In the context of a Cash Receipts table, the attribute that would most likely be a foreign key is C. customer number. This is because a foreign key is used to link two tables together in a database, establishing a relationship between them. The cash receipt number is typically a unique identifier for each receipt in the table, also known as a primary key.

The customer check number is specific to the payment method and is not generally used to link tables. The cash receipt date simply records the date of the transaction and is not a linking attribute. However, the customer number would likely refer to a specific customer in a separate Customers table, thereby creating a relationship between each cash receipt and the customer who made the payment. The use of the customer number as a foreign key ensures that data integrity is maintained across the database.

In a database, a foreign key is a column or a set of columns in a table that refers to the primary key or a candidate key in another table. It helps establish a relationship between two tables in a relational database.

From the options provided, the most likely attribute in the Cash Receipts table to be a foreign key is customer number. This is because the customer number in the Cash Receipts table would typically refer to the primary key of the Customer table, establishing a connection between the two tables.

Therefore, the correct answer is C. customer number.

User Davidmh
by
8.6k points