how to check the 3rd max salary from an employee table?
Answer Posted / akilis.org@hotmail.com
Let us Assume
Table Name=salary
Column Name=maxsal
select * from salary order by maxsal desc limit 2,1;
Enjoy the simple code :)
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
How to return multiple rows from the stored procedure?
which tcp/ip port does sql server run on? : Sql dba
explain the delete statements in sql
Difference between truncate, delete and drop commands?
what is bdb (berkeleydb)? : Sql dba
What are inner and outer joins examples of both?
how to check myisam tables for errors? : Sql dba
Where not exists in sql?
i have 2 table table one 4 columns respective values a1 7,a2 6,a3 8 ,a4 12 & table two 4 colums respective values a1 7,a2 6,a3 8,a4 15.if table one & table two 3 colums same then 4th column values 1)Qes diff >5 then print 5 * diff value 2)Que diff <5 print 5
Which join is like an inner join?
What is primary key secondary key alternate key candidate key?
How to get each name only once from an employee table?
Which is better trigger or stored procedure?
How does left join work in sql?
What is sql and how does it work?