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

How do we get field detail of a table?

1020


Database crashes. Corruption is found scattered among the file system neither of your doing nor of Oracles. What database recovery options are available? Database is in archive log mode.

1944


What is an external table?

957


Give syntax for SQL and ORACLE joins.

1040


How to speed up webrick?

1006


please explain.. DB architecture ...

1966


Explain the use of record option in exp command.

946


What are named parameters?

1033


What is a data lock in oracle?

1015


if you ctreate table identity

2313


How to drop an existing view in oracle?

902


while i take backup using ibm tsm the following errors occurred: rman-03009 ora-19513 ora-27206 ora-19502 ora-27030 ora-ora19511

4291


HI, Please let me know the syllabus for Oracle OCA and OCP Certification

2431


what is partitioning? Types of partitioning. explain? what is the new kind of partitioning type introduced in 9i?

2218


How to define an oracle sub procedure?

1054