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

There is a table with emp salary column how to get the fields belongs to the salary greater than the average salary of particular department.
Write a query

Answer Posted / murali krishna udayagiri

SELECT E.* FROM EMP E ,(SELECT DEPTNO,AVG(SAL) AVGSAL FROM
EMP GROUP BY DEPTNO) E1
WHERE E.SAL>E1.AVGSAL
AND E.DENPTNO=E1.DEPTNO;

Thanks,
Murali Udayagiri

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can u generate reports in Informatica?

1042


What is aggregate cache in aggregator transformation?

1090


what is the size of u r source(like file or table)?

2228


What is the benefit of partitioning a session?

1127


What are the uses of etl tools?

1084


how to load dimension table and fact table. plz tell me the steps.

2059


What is meant by pre and post session shell command?

1121


What is a connected transformation?

1071


What are the different types of olap? Give an example?

1003


5. Consider the following products data which contain duplicate rows. A B C C B D B Q1. Design a mapping to load all unique products in one table and the duplicate rows in another table. The first table should contain the following output A D The second target should contain the following output B B B C C

1865


Whats there in global repository

1653


What are the limitations of joiner transformation?

1068


What is meant by LDAP users?

1140


What is complex mapping?

1086


What is the use of code page?

1039