Resmed interview question

What is polymorphism, and how does one optimize SQL queries?