Professional Documents
Culture Documents
Table created.
1 row created.
SQL> /
1 row created.
SQL> /
SQL> /
1 row created.
SQL> /
1 row created.
SQL> /
6 rows selected.
DEPT SAL
----- ----------
cse 90000
iot 120000
DEPT COUNT
----- ----------
cse 3
iot 3
SQL> select dept,avg(sal) as salary from iotemployee group by dept;
DEPT SALARY
----- ----------
cse 30000
iot 40000
DEPT SALARY
----- ----------
cse 50000
iot 60000
DEPT SALARY
----- ----------
cse 10000
iot 20000
SQL>