mysql - How to get 2nd highest salary from db -


to find highest salary db use max in query.

how 2nd highest salary db. can 1 suggest sq query

this should help:

select max(salary)  mytable salary < (    select max(salary) mytable ) 

Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

python - ValueError: could not convert string to float -

php - Laravel Get all child node count with condition -