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 / nagendra kumar m r

select top 1 e.[id],e.[name],s.salary from emp e join
emp_sal s on e.[id] = s.[id] and e.[id] in (select top 2
[id] from emp_sal order by salary desc)

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is JDBC ResultSet?

1084


What is jdbc and its types?

914


Can I enable requests to a jdbc connection pool for a database connection to wait until a connection is available?

859


What is jdbc stand for?

884


What is a jdbc driver and how many jdbc drivers are available?

994


How do I write Greek ( or other non-ASCII/8859-1 ) characters to a database?

961


Discuss the significances of jdbc.

880


How can we retrieve the file in the oracle database?

935


what happen if we set JDBC string to NULL?

3351


What is connection data?

875


What is a statement?

976


What is the difference between ojdbc6 and ojdbc7?

838


What are types of resultset?

958


What is xe in oracle jdbc url?

1028


Give an example of code used for setting up connection with a driver.

918