TCS Interview Question

Second highest salary sql query