# Rank of product of two matrices [duplicate]

I want to show that $\text {rank} ( AB)\le \min(\text{rank} B, \text{rank} A)$ and when the equality occurs?