CMA Intermediate · Financial Management and Business Data Analytics · Data Processing, Organisation, Cleaning and Validation
Two tables are to be integrated: a customer master with 500 unique customer IDs and a transactions table with 2,000 rows, each carrying one customer ID that exists in the master. If transactions are joined to the master using a left join on customer ID, with customer ID unique in the master, how many rows will the result contain?
The result will contain 2,000 rows. A left join retains every transaction row, and since each customer ID appears only once in the master, every transaction matches exactly one customer record, so no rows are added or duplicated by the join.
- A2,000Correct
- B500
- C2,500
- D1,000,000
Explanation
A left join keeps every row of the left table (transactions). Because customer ID is unique in the master, each transaction matches exactly one master row, so no duplication occurs. The result has 2,000 rows. 2,500 wrongly adds the tables, and 1,000,000 is a cross-product error.
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…
- 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…
- Monthly sales (₹ lakh) of a Pune distributor for five branches are 40, 44, 46, 50 and one entry missing. The other four branches' mean is th…