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 first two highest salaries in deptno in emp
table

Answers were Sorted based on User's Feedback



how to find the first two highest salaries in deptno in emp table..

Answer / santhosh kandula


if u want select the second highest salary from the emp
table then u have to write query as

select max(salary) from emp where
salary < ( select max(salary) from emp )

Is This Answer Correct ?    6 Yes 1 No

how to find the first two highest salaries in deptno in emp table..

Answer / ajitnayak

select e.*
from emp e
where rownum < 3
order by e.sal desc ;

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More DB Development Interview Questions

Can you instantiate a COM object by using T-SQL?

1 Answers  


If a column is an image value type, how you can compare column values? How can you use this column in join clause?

0 Answers  


On friday, you issued several insert statements using query analyzer. You then verified the data had been correctly entered with a select statement on monday, your users report that the data is not there what happened?

0 Answers  


How to combine two function together?

0 Answers  


explain detail about ftp in datastage?

0 Answers   IBM,


What is an extended stored procedure?

1 Answers  


Explain about network model?

0 Answers  


What is database design and development?

0 Answers  


What is a self join? Explain it with an example?

16 Answers   TCS,


Who are naive users?

0 Answers  


Explain what a database is?

0 Answers  


can you give me the syntax of named procedure??

2 Answers  


Categories