多做题,通过考试没问题!

计算机程序设计

睦霖题库>大学试题(计算机科学)>计算机程序设计

在SQLServer数据库(排序规则为默认值)中,有一个产品表products,你想按照价格从小到大的顺序显示所有产品的名称(productname)和价格(price),可以实现该功能的T-SQL语句是()

  • A、SELECT productname,price from products order by price ASC
  • B、SELECT productname,price from products order by price DESC
  • C、SELECT productname,price from products order by price
  • D、SELECT productname and price from products order by price DESC
正确答案:A,C
答案解析:
进入题库查看解析

微信扫一扫手机做题