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

write a query to select name from one table which has
id,name and salary from another table which has id, sal
where the salary is the second maximum

Answer Posted / raveendra reddy

select emp.name,emp.id,sal.salary from empDetail emp,empSal
sal where sal.salary < (select max(salary) from empSal) and
emp.id=sal.id order by desc limit 1;

Is This Answer Correct ?    10 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

904


What do you mean by database connection pooling?

961


How can I connect mysql or oracle with java?

976


java based application for hospital management

3842


What is the fastest type of JDBC driver?

1070


Why is odbc needed?

919


What is meant by dao?

947


Why we use while rs next ())?

982


How many types of jdbc drivers are there?

1006


Explain how to make updates to the updatable resultsets.

929


What are collection pools?

986


What are the different types of locking in JDBC?

1018


What is the advantage of namedparameterjdbctemplate?

968


What are the new features added to JDBC 4.0?

965


What isolation level is used by the DBMS when inserting, updating and selecting rows from a database?

971