DDIA doctor on-call example, Repeatable Read with lock VS Serializable
You are writing an application for doctors to manage their on-call shifts at a hospital. The hospital usually tries to have several doctors on call at any one time, but it absolutely must have at least one doctor on call.