I have an sql question.
I have two tables
one has 'deptno' and 'dname' in it
two has 'empno' 'deptno' and 'sal' in it
I would like to display deptname, number of employees and average sal in each dept.
so the display would look like this
dname number of people sal
accounting 3 29000
research 6 42000
I can't seem to join them together I keep getting grouping errors. Can anyone help?
I have two tables
one has 'deptno' and 'dname' in it
two has 'empno' 'deptno' and 'sal' in it
I would like to display deptname, number of employees and average sal in each dept.
so the display would look like this
dname number of people sal
accounting 3 29000
research 6 42000
I can't seem to join them together I keep getting grouping errors. Can anyone help?