SQL数据库知识竞赛试题及答案.pptVIP

  • 352
  • 0
  • 约2.22万字
  • 约 111页
  • 2017-05-21 发布于四川
  • 举报
26、关于聚合函数,以下说法错误的是(b)。(选择一项) a)Sum返回表达式中所有数的总合,因此只能用于数字类型的列。 b)Avg返回表达式中所有数的平均值,可以用于数字型和日期型的列。 c)Max和Min可以用于字符型的列。 d)Count可以用于字符型的列。 返回 正确答案:b Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. 27、现有订单表orders,包含用户信息userid, 产品信息 productid, 以下(d)语句能够返回至少被订购过两回的productid。 (选择一项) a)select productid from orders where count(productid)1 b)select productid from orders where max(productid)1 c)select productid from orders where having count(productid)1 group by productid d)select productid from orders group by productid

文档评论(0)

1亿VIP精品文档

相关文档