← Workplace tasks

Free SQL and spreadsheet practice · No account

Practice real data exceptions with files and answers

Choose a small business case, inspect the original CSVs, run a SQLite query or work in your spreadsheet, and check the complete output before saving it.

These ten cases use separate fictional datasets and declared business rules. CSV downloads open in Excel. The browser executes SQLite; Excel formulas run in your own compatible spreadsheet.

Excel / SQL lookup

XLOOKUP practice: preserve missing customers

The dispatch queue must keep every shipment even when the customer master is incomplete. Create an explicit review label rather than hiding an unmatched shipment.

8 source records across 2 tables · Task, CSVs, reference SQL and expected output

Open the case →

Excel / SQL lookup

XLOOKUP practice: reject ambiguous customer keys

A CRM export contains repeated master rows and conflicting account owners. Supply an owner for each opportunity only when the master provides a single distinct owner.

9 source records across 2 tables · Task, CSVs, reference SQL and expected output

Open the case →

SQL inventory

Reconcile the latest approved stock count

Warehouse staff upload multiple count attempts. Compare the latest approved count for each SKU with book stock, while retaining items that have never been approved.

10 source records across 2 tables · Task, CSVs, reference SQL and expected output

Open the case →

SQL inventory

Calculate stock available after reservations

A store needs an availability file for tomorrow morning. Combine on-hand stock, active reservations and eligible inbound units without multiplying rows.

12 source records across 3 tables · Task, CSVs, reference SQL and expected output

Open the case →

Excel / SQL data preparation

Audit ambiguous dates and mixed currencies

A travel-expense import mixes date conventions and currency labels. Produce an accepted ledger from the declared source convention, leaving ambiguous and unsupported records for review.

8 source records across 2 tables · Task, CSVs, reference SQL and expected output

Open the case →

SQL receivables

Age receivables after partial payments

Collections needs open balances as of 12 November. Apply only posted payments received by the cutoff and keep an overpayment as a credit instead of erasing it.

9 source records across 2 tables · Task, CSVs, reference SQL and expected output

Open the case →

SQL temporal lookup

Find the price effective on each order date

Sales operations must verify historical prices. Pick the last price that started on or before each order date, without leaking a future price into an older sale.

9 source records across 2 tables · Task, CSVs, reference SQL and expected output

Open the case →

SQL support operations

Measure first response after a ticket reopens

A support lead needs one first-response measurement per opening episode. A response from an earlier episode cannot satisfy the SLA for a reopened ticket.

10 source records across 2 tables · Task, CSVs, reference SQL and expected output

Open the case →

Move on to a complete project

Clean a 68-row order file · Reconcile the larger sales and refunds project · Practice workplace calculations