View the Exhibits and examine the structure of the costs and PROMOTIONS tables
You want to display PROD IDS whose promotion cost is less than the highest cost PROD ID in a
Promotion time interval

欢迎免费使用小程序搜题/刷题/查看解析,提升学历,成考自考报名,论文代写、论文查重请加客服微信skr-web

View the Exhibits and examine the structure of the costs and PROMOTIONS tables
You want to display PROD IDS whose promotion cost is less than the highest cost PROD ID in a
Promotion time interval
Examine this SQL statement
SELECT prod_id
FROM costs
WHERE promo_id IN
(SELECT promo_id
FROM promotions
WHERE promo_cost < ALL
(SELECT MAX(promo_cost)
FROM promotions
GROUP BY (promo end date - promo begin date)));
What will be the result?

A.It executes successfully and gives the required result.
B.It gives an error because the GROUP BY clause is not valid
C.It executes successfully but does not give the required result
D.It gives an error because the ALL keyword is not valid
正确答案C
访客
邮箱
网址

通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作


  • 自动写文案
  • 自动写小说
  • 马上扫码让Ai帮你完成工作
通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作

  • 自动写论文
  • 自动写软件
  • 我不是人,但是我比人更聪明,我是强大的Ai
Top