Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

regarding sqlserver

$
0
0

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


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>