I have two tables:
Persons:
empid(primary key) firstname lastname email
Details:
Did(primary key) salary designation empid
Now I want to select firstname, lastname, salary of the employee with the 3rd highest salary.
KEEP IT SIMPLE SINCE I AM A BEGINNER.
Also it would be great if you can suggest me a site where I can find SQL query exercises with solutions (I do not need an online interpreter, I have SQL Server 2008 to practice on ), I have completed w3schools (which was awesome) but I need exercises now, I tried sql.ex.ru but it was not that helpful.