Lesson 1: A customer stored twice · 7 min
Before you begin · The duplicate · What went wrong
Learners sign in, so every finish and score is recorded. 8 fields to fill in with your details.



Minutes are an estimate.
Before you begin · The duplicate · What went wrong
Keys · Spot the anomaly · Check
ACID in plain words · The half-done transfer · Constraints
Pattern · Review the snippet · Check
What an index does · Index or not? · Raise it early
The reviewer's checklist · Practice
Taken from the course itself.
What was the root cause?
Answer: The same fact stored in several places. One fact in many places lets the copies drift apart.
Lesson 1: A customer stored twice
What does the rollback do here?
Answer: Undoes the first write. A rollback returns the data to the state before the transaction.
Lesson 3: Transactions and data integrity
A procedure fails halfway through. What should the caller see?
Answer: A clear error and the data as it was before. A caller must know about the failure, and the data must be unchanged.
Lesson 4: Stored procedures and error handling
Stock is reduced but the order row fails to save.
Best response: Wrap both writes in one transaction and roll back on error.
Weaker responses: Retry only the second write; Ignore the failure; Write a note.
Comments from trainers
No comments yet. Tell other trainers how the course went.
Your comment
Comments are public. We remove spam and personal details.