What determines whether a double displacement reaction will occur?
The simple answer is whether the reaction leads to the formation of a solid (precipitate) or a gas otherwise there is really no reaction