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 / sagar padekar

select * from bill_gen
where total_payable< (select max(total_payable) from
bill_gen) order by total_payable desc limit 1;

hey please refer total_payable as salary amount

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

1017


difference between anonymous blocks and sub-programs.

1188


Name the different types of indexes in sql and define them.

1224


What is latest version of sql?

1102


Why plvtab is considered as the easiest way to access the pl/sql table?

1293


Can %notfound return null after a fetch?

1105


what is a composite key ? : Sql dba

1101


Explain mutating table error.

1264


What are the uses of merge?

1227


What is a recursive stored procedure?

1253


Is a foreign key always unique?

984


What trigger means?

1036


how can we destroy the session, how can we unset the variable of a session? : Sql dba

1052


What is the benefit of foreign key?

1071


Explain the update statement in sql

1046