JK Tech interview question

SQL query for finding second highest salary? Type of drivers? Prime Number program.