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...

Given an employee table, how would you find out the second
highest salary?

Answer Posted / balindra sahani

select max(sal) from emp
where sal not in (select max(sal) from emp order by sal desc )

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about network model?

943


How to combine two function together?

2059


Pgm A calls Pgm B and pgm B uses cursor, when pgm B is called second time, the program is abending saying the cursor is opened? Why?

2368


You have two tables with a one to many join based on a field named id. You need to find records in the parent table that are not represented in the child table. how would you accomplish this?

1000


Explain the cube operator?

936


How to use timestamp datatypes

1965


Does QTP Support the Propjects which are running in Dot Net? As we are starting with new project in Dot net need to use automation tool?Please advice & let me know what would be the best.

1989


How long can an error message be in raiseerror function?

937


What are the three basic rules which are to be followed for the relational model of the database?

930


What is dbms explain in brief?

954


What is the maximum length of an extended property?

923


What is DB Development software?

1999


In which table collections errors are stored.

2338


How to read and create .LDC data files which are used by linguatic dictionary.

2470


Write the fastest query to find out how many rows exist in a table?

1053