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
Usethe hall where they met
Usea case in which the lock failed
Avoida case where the lock failed