PTC interview question

Database optimization