HP Neoview SQL Reference Manual page 294

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

--- 1 row(s) selected.
Return the average salary by department:
SELECT deptnum, AVG (salary) AS "AVERAGE SALARY"
FROM persnl.employee
WHERE deptnum < 3000
GROUP BY deptnum;
Dept/Num
--------
1000
2000
1500
2500
--- 4 row(s) selected.
294
SQL Functions and Expressions
"AVERAGE SALARY"
---------------------
52000.17
50000.10
41250.00
37000.00

Advertisement

Table of Contents
loading

Table of Contents