码迷,mamicode.com
首页 > 其他好文 > 详细

OCP 071 每日一题

时间:2020-02-25 20:03:21      阅读:94      评论:0      收藏:0      [点我收藏+]

标签:employees   esc   avg   desc   from   date   rip   query   select   

Choose the best answer.
Examine the description of the EMPLOYEES table:
Name Null Type

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

OCP 071 每日一题

标签:employees   esc   avg   desc   from   date   rip   query   select   

原文地址:https://blog.51cto.com/12243025/2473383

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!