where / that / in which in relative clauses
Where marks place, not every abstract relation.
Use where for a place. For a case, a situation, a statute, or a document, use in which or that. Do not use the case where or the statute where when no place is in view.
Examples
Use the hall where they met
Use a case in which the lock failed
Avoid a case where the lock failed