Tech Mahindra interview question

about project.. sql queries