Decide What to Extract
Optional arithmetic and percentage refresher — return to this activity
A schema is the list of fields in a table and what each means. Decide the question first: to check paid spending, you need invoice ID, source line, quantity, unit price, extra charges and payment status. Collecting every possible detail adds noise and may expose unnecessary information.
Community event invoices: fictional document pack
All people, records and numbers in this pack are authored teaching examples. They are not records or performance claims about real organizations.
- D1 · Invoice A, line 1: two supply boxes at 15 credits each; line 2: delivery 5 credits. Invoice total 35 credits.
- D2 · Invoice B, line 1: four label packs at 10 credits each. Total 40 credits. The archive includes a second scan of the same invoice ID B; it is not another purchase.
- D3 · Deposit note C: amount pending confirmation; no payment recorded. Keep it in the exception log, not as a zero-valued paid invoice.
- D4 · Extracted draft: A quantity 20, unit price 15; delivery 5; B quantity 4, unit price 10; duplicate B quantity 4, unit price 10. These are supplied extraction errors, not live OCR.
- D5 · Separate service log for rate practice: week 1, 7 requests resolved out of 10 received; week 2, 18 out of 30. Definitions and observation windows match.
- D6 · Separate attendance chart practice: 100 visitors in one five-day week and 110 in the next. No cause for the change was measured. All figures use the same counting method.
Trace the amount back to the invoice
2 boxes × 15 credits/box
30 credits
30 + 5 delivery = 35
A second invoice B contributes 40, once: 35 + 40 = 75 paid credits. A second scan of B adds no transaction. Pending deposit C remains an unresolved record, outside this paid subtotal.
The extracted quantity 20 would make the first line 300. Repair the source mismatch; do not change the price to force agreement. Then check every source, including records absent from the table.
Worked example
For D1, a row can say A | line 1 | supplies | quantity 2 | 15 credits each. Keep delivery on line 2 or in a clearly named charge field. Do not mix a line total and a whole-invoice total in the same column.
Use the supplied records to check facts and calculations. Your written reasoning is retained for your review, not automatically graded. The final project uses a different case and separate review criteria.