My first three SQL projects died the same way. Each started as a good question, survived a week of enthusiastic querying, and then sat in a folder of half-finished scripts that I never opened again. What was missing was not more SQL knowledge. It was a definition of finished, written down before I started.
Write down what finished means
Without a stopping line, a data question expands to fill the time available. Before the first query, write three sentences: the question, the output you will produce, and the standard the answer must meet. “Which products lost money last quarter, as a table of product and margin, checked against the finance total” is finishable. “Understand product profitability” is not.
Put the sentences in the file as a comment. When motivation dips — and it will, usually around the third join — the file tells you how close the end is.
Cut the question, not the quality
The instinct when time runs short is to hurry. Better to shorten. If the project needs five tables and you have two evenings, drop to a version that needs three tables and answers a narrower question, and say so in the write-up. A small, correct answer with a stated scope is a finished project. A rushed answer with a wide scope is a rumour.
- Narrow the date range rather than skipping validation.
- Report two segments instead of twelve, and label the rest as future work.
- Drop a nice-to-have breakdown before you drop the reconciliation.
Make the deliverable runnable by someone else
A project is not finished when the answer appears on your screen. It is finished when another person can open a folder and reproduce it. That means the saved query, the source data or a pointer to it, and a short note on how to run it.
Test it the blunt way: close every tab, open the folder, and run the file from scratch. Anything you have to remember in order to make it work is a missing piece of the deliverable.
Write the three sentences only you can write
The query shows what the data says; the write-up says what it means and what it cannot support. Three or four sentences are enough: the answer, one caveat, and the next question. Mention what you excluded and why, because that is the part a reader cannot reconstruct from the output.
If the answer surprised you, write down the check that convinced you it was real. That note is often more valuable than the number itself.
Close it, then stop
Archive the folder, mark the last item on your list, and put the next question somewhere you will find it. The temptation is to keep adding one more cut of the data. Resist it — the point of finishing a small project is to prove to yourself that you can, which is the skill that makes the second project easier.
Define done, shrink instead of rushing, hand over something runnable, and say what it means. Four steps, and the folder stops being a graveyard.