Hi,
i have one emp table
empid name deptid sal
1 kot 4 2000
2 viss 2 1000
3 pra 1 1000
4 ram 3 1000
5 fff 1 20000
6 fty 3 20000
7 hyyy 4 20000
10 kotiii 2 20000
in this i want to retrieve whose salary is greater than avg salary of each their departments