Xoriant interview question

Mysql Performance optimization