Wipro interview question

SQL, Teating