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 / raju tt

select max(salary) from employees where salary not in
(select max(salary) from employees)

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is clustered and nonclustered index in sql?

944


What is the difference between local variables and global variables?

1125


Explain scalar functions in sql?

1068


what is union? : Sql dba

1028


what is timestamp in mysql? : Sql dba

1078


Does sql between include endpoints?

1016


what is the difference between clustered and non clustered index in sql? : Sql dba

1128


What is a temporal data type?

1053


How do I tune a sql query?

977


column A column b | output 10 7 | 10 5 8 | 8 7 -9 | 7 3 5 | 5 0 6 | 6 Write a sql query to print such output.

7352


What is the unique index?

1054


what is heap table? : Sql dba

1106


What is the difference between left join and right join?

947


Can there be 2 primary keys in a table?

997


How do you write a complex sql query?

1083