Antimicrobial pharmacology

Why can unnecessary antibacterial exposure increase the proportion of resistant bacteria in a population?