正在加载图片...
D.合并数据库 23在SQL Server2008中,通配符通常与LIE关键字一起配合使用,以下通配符中()表示在括 号中指定范围内的一个字符。 A.()B.0C.[]D.[] 24在SQLServer2008中数据库中,假设订单表orders用来存储订单信息,cid代表客房编号,oney 代表订购金额,现要查询每个客房订购饮数和订购总金额,下面查询语句中()可以返回正确结果, A.select cid,count (money),sum(cid)from orders group by cid B.select cid,count (money),sum(cid)from orders order by cid C.select cid,count(cid),sum(money)from orders order by cid D.select cid,count(cid),sum(money)from orders group by cid 25 SQLServer2008数据库中创建一个名为Custonmers的新表,但同时要求表中不包含任何记录,下列 查询语句中可以实现的是()。 A.Select*into customers from clients where 1=2 B.Select*into customers from clients where false C.insert into customers select*from clients where 1=2 D.insert customers select*from clients where false 6在MS SQL Server Management Studio中新建查询后,运行以下SqL语句,得到的输出结果是()。 Se1 ect DateAdd(Y,3,’2005-03-04') A2008-03-0400:00:00 B.2005060400:00:00 C.2005-03-0700:00:00 D.2008 27在$QL数据库中,系统提供的豪合函数中,()用于返回表达式中所有值的最小值。 A.SUM B.MIN C.AVG D.COUNT 28关于NION的说法正确的是()。 A.UNION运算符只能合并同一张表的记录 B.UNION运算符能合并两个列数不同且数据类型不同的记录巢 -------------------------------------- 装-------------------------------------- 订------------------------------ 线---------------------------------------- D. 合并数据库 23. 在 SQL Server 2008 中,通配符通常与 LIKE 关键字一起配合使用,以下通配符中( )表示在括 号中指定范围内的一个字符。 A. (^) B. () C. [ ] D. [^] 24. 在 SQL Server2008 中数据库中,假设订单表 orders 用来存储订单信息,cid 代表客房编号,money 代表订购金额,现要查询每个客房订购次数和订购总金额,下面查询语句中( )可以返回正确结果。 A. select cid,count(money),sum(cid) from orders group by cid B. select cid,count(money),sum(cid) from orders order by cid C. select cid,count(cid),sum(money) from orders order by cid D. select cid,count(cid),sum(money) from orders group by cid 25. SQLServer2008 数据库中创建一个名为 Custonmers 的新表,但同时要求表中不包含任何记录,下列 查询语句中可以实现的是( )。 A. Select* into customers from clients where 1=2 B. Select* into customers from clients where false C. insert into customers select* from clients where 1=2 D. insert customers select* from clients where false 26. 在 MS SQL Server Management Studio 中新建查询后,运行以下 SQL 语句,得到的输出结果是( )。 Select DateAdd(YY,3,’2005-03-04’) A. 2008-03-04 00:00:00 B. 2005-06-04 00:00:00 C. 2005-03-07 00:00:00 D. 2008 27. 在 SQL 数据库中,系统提供的聚合函数中,( )用于返回表达式中所有值的最小值。 A. SUM B. MIN C. AVG D. COUNT 28. 关于 UNION 的说法正确的是( )。 A. UNION 运算符只能合并同一张表的记录 B. UNION 运算符能合并两个列数不同且数据类型不同的记录集
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有