336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
Use WHERE clause to restrict the rows that you select.
Use HAVING clause to restrict groups.
SELECT department_id, AVG(salary)
FROM employees
WHERE AVG(salary)>8000
GROUP BY department_id;
==> This sql statement will generate an error at line 3.
==> WHERE should be HAVING
'Oracle' 카테고리의 다른 글
SUM + DECODE + TO_CHAR (0) | 2006.08.31 |
---|---|
SUM + DECODE + TO_CHAR (0) | 2006.08.31 |
Restricting Group Results (0) | 2006.08.31 |
General Functions (0) | 2006.08.30 |
General Functions (0) | 2006.08.30 |