Answer Posted / prakash.matte
if we want to make use of nested query instead of the above,
try the following
select max(column_name) from table_name where column_name =
(select
max(column_name)-(highest_salary_number_for_calculation -1)
from blocks where bid);
Example :
For second highest salary:
select max(bid) from blocks where bid = (select max(bid)-1
from blocks);
For third highest salary:
select max(bid) from blocks where bid = (select max(bid)-2
from blocks);
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
What is get and post method in php?
Is php easier than javascript?
What are the 5 types of variables?
What are sql functions?
What is the function of string in c?
Can we use session in mvc?
Tell me what are the encryption techniques in php?
How to remove the new line character from the end of a text line?
What is difference between md5 and SHA256?
Which function would you use to merge two arrays in php?
How can we destroy the cookie in php?
How cookies are transported from browsers to servers?
What is use of htmlspecialchars php?
What is php used for?