Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


how to find 2nd highest salary in random database salary of employer.....

Answers were Sorted based on User's Feedback



how to find 2nd highest salary in random database salary of employer.......

Answer / narendra sharma

select column_name from table_name order by column_name
desc limit 1,1

Is This Answer Correct ?    12 Yes 6 No

how to find 2nd highest salary in random database salary of employer.......

Answer / arnab das

select distinct column_name from table_name order by
column_name desc limit 1,1

Is This Answer Correct ?    6 Yes 4 No

how to find 2nd highest salary in random database salary of employer.......

Answer / rajasekhar.s

select distinct a.sal from emp a where
n=(select count(distinct b.sal)
from emp b where a.sal<=b.sal)

Is This Answer Correct ?    1 Yes 1 No

how to find 2nd highest salary in random database salary of employer.......

Answer / pankajbisane

select emp_name, salary from employee where salary = (select MAX(salary) from employee
WHERE salary <> (select MAX(salary) from employee ))

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MySQL Interview Questions

What is mysql and how it works?

0 Answers  


How can you retrieve a particular number of records from a table?

0 Answers  


How to check server status with 'mysqladmin'?

0 Answers  


How do I export mysql query results to excel?

0 Answers  


How do I update a variable in mysql?

0 Answers  


What is query log in mysql?

0 Answers  


what is constraints?

0 Answers  


How can you export the table as an xml file in mysql?

0 Answers  


How do I get a list of table names in mysql?

0 Answers  


What is the difference between timestamp and datetime in mysql?

0 Answers  


Explain % and _ inside like statement?

0 Answers  


How do I show users in mysql?

0 Answers  


Categories