多项选择题
在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.select * from table_name where 1<=2
B.truncate table table_name
C.delete from table_name where null=null
D.alter table table_name add column idd int -
多项选择题
下面有关HAVING子句描述错误的是()
A.HAVING子句必须与GROUPBY子句同时使用,不能单独使用
B.使用HAVING子句的同时不能使用WHERE子句
C.使用HAVING子句的同时可以使用WHERE子句
D.使用HAVING子句的作用是限定分组的条件 -
多项选择题
可以使用UNION子句的语句()
A.INSERT
B.SELECT
C.CREATEVIEW
D.FOR
