LifeWorks interview question

OOPS Polymorphism SQL queries eg:joins C/C++ / java comparison