Recently, I confused how to use between that and which.
Here, I found a clear and easy to understand, which written by Kimbery, answer.
A restrictive clause (also called defining relative clauses) is a clause limits, defines, or 'restricts' another part of the sentence. You cannot remove the restricted clause from a sentence without changing the basic meaning of the sentence. Restrictive clauses that define things use 'that' (or 'who' if it restricts a person, 'when' if it restricts units of time, and 'where' if it restricts a place). Because talking abstractly about clauses can be confusing, here are some examples.
Dogs that are naughty will be put outside.
(Restrictive clause: 'that are naughty'. It restricts 'dogs', telling us what kind of dogs. Does the sentence have the same basic meaning when the clause is removed? "Dogs will be put outside." No, because not all dogs should be put outside, only those that are naughty.)
The house that I grew up in was blue.
(Restrictive clause: 'that I grew up in'. It restricts 'the house', telling us what kind of house it was.
The lady who took our photograph at the bridge is sitting in the corner.
(Restrictive clause: 'who took our photograph at the bridge'. It restricts 'the lady', telling us who the lady is.
NOTE: With restrictive clauses you do not set the clause apart from the sentence with commas.
A nonrestrictive clause (also called nondefining relative clauses) is a clause that adds information to a sentence, but does not limit, define, or 'restrict' another part of the sentence. Unlike restrictive clauses, you can remove these clauses from the sentence and the meaning or important message of the sentence is still clear. Nonrestrictive clauses use 'which' to talk about things ('who' to talk about a person or persons, 'where' to talk about places, and 'when' to talk about time). Here are some examples:
The pie, which was blueberry, tasted great.
(Nonrestrictive clause: 'which was blueberry'. It tells us more about 'the pie'. Does the sentence have the same basic meaning when the clause is removed? "The pie tasted great." Yes, because the flavour of the pie is not vital to understanding the situation or message.)
Our school, which is over 300 years old, is getting a new auditorium.
(Nonrestrictive clause: 'which is over 300 years old'. It tells us more about 'our school
His mother, who we call our second mother, is coming to visit us.
(Nonrestrictive clause: 'who we call our second mother'. It tells us more about 'his mom
NOTE: Nonrestrictive clauses should be set off from the sentence with commas.
Kimberly