Hi, I'm sure there is a rule I learned but have long forgotten on when to use "that" or "which" such as...

He picked up the whip which was on the bedside table or

He picked up the whip that was on the beside table.

Thanks for any help and sorry if this is the wrong place for this kind of question. *s* ashley