Enliten IT India Interview Question

Logic check Some sql query