标签:employees esc avg desc from date rip query select
Choose the best answer.EMP_ID NOT NUL NUMBER
EMP_NAME VARCHAR2 (40)
DEPT_ID NUMBER(2)
SALARY NUMBER(8,2)
JOIN_DATE DATE
Which query is valid?
A) SELECT dept_id, join_date,SUM(salary) FROM employees GROUP BY dept_id, join_date;
B) SELECT depe_id,join_date,SUM(salary) FROM employees GROUP BY dept_id:
C) SELECT dept_id,MAX(AVG(salary)) FROM employees GROUP BY dept_id;
D) SELECT dept_id,AVG(MAX(salary)) FROM employees GROUP BY dapt_id;
Answer: A
标签:employees esc avg desc from date rip query select
原文地址:https://blog.51cto.com/12243025/2473383