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 the second highest salary from emp table?

Answer Posted / anuj maheshwari

select sal from emp where sal=(select max(sal) from emp
where sal<(select max(sal) from emp));

Is This Answer Correct ?    34 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is server name sql?

1153


What do we need to check in database testing?

1026


where are cookies actually stored on the hard disk? : Sql dba

1032


Can you join a table to itself?

1138


how can we know the count/number of elements of an array? : Sql dba

1066


Determine if oracle date is on a weekend?

1042


What is varchar sql?

1152


What is difference between ms sql and mysql?

971


Explain two easy sql optimizations.

1019


Explain isolation levels. : Transact sql

1074


What are the uses of merge?

1168


How can I make sql query run faster?

1018


Can we join 3 tables in sql?

1049


what is the command line end user interface - mysql? : Sql dba

984


Which is better trigger or stored procedure?

955