Pergunta de entrevista da empresa Tata Consultancy Services

Binary search and self join in sql