Capgemini interview question

SQL queries about nth salary ,tables merging.