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

How do you determine the sensitivity of the ResultSet object?

946


If I use the JDBC API, do I have to use ODBC underneath?

1002


Is odbc an api?

1000


What are types of resultset?

958


State the different connection methods used for creating different types of sql.

938


What is odbc and jdbc in dbms?

928


What is jdbc servlet?

934


What is two-phase commit in the database?

1002


Which jdbc driver type s is are the jdbc odbc bridge?

835


Is jdbc part of j2ee?

947


Explain the locking system in jdbc?

908


What should be done for auto generating primary key id in a table ?

938


What is serialization and deserialization in java programming?

936


State the three different ways in which you can create a table?

934


What are different types of ResultSet?

1022