Chinaunix首页 | 论坛 | 博客
  • 博客访问: 673750
  • 博文数量: 487
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4936
  • 用 户 组: 普通用户
  • 注册时间: 2018-07-05 13:59
个人简介

ocp考试资料群:569933648 验证码:ocp OCP 12c 19c考试题库解析与资料群:钉钉群号:35277291

文章分类

全部博文(487)

文章存档

2024年(2)

2023年(37)

2021年(151)

2020年(37)

2019年(222)

2018年(38)

我的朋友

分类: Oracle

2019-02-13 17:13:36

6、(4-21) choose the best answer:
View the Exhibit and examine the structure of the CUSTOMERS table.

Evaluate the following SQL statement:

SQL> SELECT cust_city, COUNT(cust_last_name)

FROM customers

WHERE cust_credit_limit > 1000

GROUP BY cust_city

HAVING AVG(cust_credit_limit) BETWEEN 5000 AND 6000;

Which statement is true regarding the outcome of the above query?

A) It executes successfully.

B) It returns an error because WHERE and HAVING clauses cannot be used in the same SELECT statement.

C) It returns an error because WHERE and HAVING clauses cannot be used to apply conditions on

the same column.

D) It returns an error because the BETWEEN operator cannot be used in the HAVING clause.

Answer:A
阅读(598) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~