how to check the 3rd max salary from an employee table?
Answer Posted / dulal
Without Using MAX or MIN keyword
select TOP 1 EmpName, RevisedMinutes
from tblEncounter
where RevisedMinutes IN(select distinct Top 3
RevisedMinutes from tblEncounter order by RevisedMinutes
desc)
order by RevisedMinutes asc
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me
Can we use distinct and group by together?
what is collation? : Sql dba
Can delete statement be rollbacked?
what are all the common sql function? : Sql dba
how to start mysql server? : Sql dba
what are the advantages of sql ? : Sql dba
What is the best sql course?
what is schema? : Sql dba
how many tables will create when we create table, what are they? : Sql dba
how to escape special characters in sql statements? : Sql dba
What is your daily office routine?
what is bcp? When does it used? : Sql dba
Is primary key always clustered index?
What is the current version of postgresql?