Siemens interview question

Object Oriented Concepts. Database query performance improvement