how to find the second highest salary from emp table?
Answer Posted / hari chaudhary
All My friend use this query then good result of your sql
database find in second or Third last data find.....
Select distinct(salary) From employee E1 Where
(n-1) = (Select Count(Distinct(E2.salary)) From employee E2
Where E2.salary > E1.salary)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are actual parameters and formal parameters?
give the syntax of grant and revoke commands? : Sql dba
What are sql procedures?
What is delete command in sql?
Can we call a function containing dml statements in a select query?
What is composite data type in pl sql?
Can we use two order by clause in query?
Does sql require a server?
Is pl sql better than sql?
how to see the create table statement of an existing table? : Sql dba
What is a full join sql?
What is clause in sql?
Can you have more than one key in a database?
What is the difference between sql and mysql?
What are the limitations of sql express?