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

1.how to extract the second highest salary from emp table
having sal as a column which contains the salary of all
employee of an organisation.

Answer Posted / swapna

select top(1) sal From sample
where sal
in (select top(2) salfrom sample order by saldesc)
order by sal asc

Is This Answer Correct ?    0 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the varoius components of physical database structure of oracle database?

982


Explain cascading triggers.

1056


How to put more than 1000 values into an oracle in clause?

1012


What will be the syntax to find current date and time in format "yyyy-mm-dd"?

999


Describe varray?

1037


How to resolve name conflicts between variables and columns?

1004


i have a question here... As of my knowledge, when we apply an index (b-tree)on a column, internally it arranges the data in b-tree format and do the fetching process correspondingly... and my quetion is... How a bit-map index arranges the data internally when applied on a column?IS it in b-tree format or whatelse?

1927


What is data block in Oracle?

1087


What is an oracle wallet?

923


How can I introduce multiple conditions in like operator?

970


What to do if dba lost the system password?

1146


What are the common oracle dba tasks?

1122


How to generate query output in html format?

1092


What are the benefits of ordbms?

1067


what is the scripts in data base?

2123