首页 > 试题广场 >

26.确定 Products 表中价格不超过 10 美元的最

[单选题]
26.确定 Products 表中价格不超过 10 美元的最贵产品的价格
Products 表
prod_price
9.49
600
1000
【问题】编写 SQL 语句,确定 Products 表中价格不超过 10 美元的最贵产品的价格(prod_price)。将计算所得的字段命名为 max_price。
【示例结果】返回max_price
max_price
9.49
【示例解析】
返回十元以下最高价格max_price。
  • select min(prod_price) as max_price from Products
    where prod_price <=10
  • select avg(prod_price) as max_price from Products
    where prod_price <=10
  • select big(prod_price) as max_price from Products
    where prod_price <=10
  • select max(prod_price) as max_price from Products
    where prod_price <=10
发表于 2022-05-16 10:37:52 回复(0)
无啥不是min呢 9.49不是里面最小的吗
发表于 2024-08-16 01:42:33 回复(0)