Remove the two footer lines from a stock export (pharmacy)
The export tool appends two summary lines at the bottom of every file. Remove them, then type the counts.
- Level
- beginner
- Time
- ~6 min
- Task
- Build the query
- Access
- Pro
Checking your access…
About this exercise
What you'll practise
Remove trailer rows that an export adds, before typing the data.
The scenario, sample data, step list, hints and solution open with Pro. Grading checks your query against hidden data as well as the visible sample, so a query that only fits the sample doesn't pass.
Input
- StockFile (file)
- Text file; first line: SKU,Item,OnHand
- Every field is text until you set types
Expected output columns
SKU (text), Item (text), OnHand (number)