CMA Intermediate · Financial Management and Business Data Analytics · Data Processing, Organisation, Cleaning and Validation
A company keeps its sales invoices in a table where Invoice No. is unique for each row. A separate Customer table has Customer ID as its unique identifier, and the invoice table also carries Customer ID to link each invoice to a customer. In the invoice table, Customer ID is a:
Customer ID in the invoice table is a foreign key. It refers to the primary key of another table, the Customer table, and so links each invoice to its customer. The invoice table's own primary key is Invoice No.
- APrimary key
- BForeign keyCorrect
- CComposite key
- DSurrogate index
Explanation
Invoice No. uniquely identifies rows in the invoice table, so it is the primary key. Customer ID in the invoice table refers to the primary key of the Customer table, which makes it a foreign key. A composite key would need two or more fields combined to identify a row, which is not the case here.
Did you get it right without looking?
One question tells you little. A timed set on Data Processing, Organisation, Cleaning and Validation shows your real accuracy, how long you take and where you lose marks.
More Data Processing, Organisation, Cleaning and Validation questions
- A finance team at an Indian retail company finds that the customer-master file lists 'Ravi Sharma, Mumbai' twice with identical PAN, phone n…
- Which of the following data sets is an example of structured data suited to storage in a relational database?
- A finance team stores each customer as one row, with columns for Customer ID, Name, Credit Limit and Region. In the language of data organis…
- A bank branch updates customer account balances only at the end of the day by running all the day's accumulated cheque and deposit entries t…
- A firm's database holds Sales (Order ID, Product ID, Product Name, Product Price, Quantity). Product Name and Product Price repeat on every …
- An analyst fills missing values in a column of monthly expenses (Rs thousand) using the mean of the available values: 20, 30, 40, 50 and two…