Thomson Reuters Interview Question

MySQL questions and one query