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

How can you create jdbc statements?

1018


What are the advantages of using jdbc datasource?

1026


How many categories of jdbc drivers are there?

964


What is jdbc and its types?

1012


What are drivers available?

1069


Is jdbctemplate thread safe?

970


What happens if connection is not closed in jdbc?

1026


What is a rollback in jdbc?

1001


What is the purpose of the jdbc resultset interface?

968


Which package is used for jdbc application?

1026


What are the differences between resultset and rowset?

1195


Is uri the same as url?

940


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

1020


What is jdbc driver for sql server?

1059


Is jdbc connection secure?

1012