Dye & Durham interview question

Object-oriented Principles and SQL queries