如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
第8讲数据的统计与汇总软件测试SQLServer2000开发与管理第8讲数据的统计与汇总简答题:测试下列函数运行结果ascii('sql');char(66);charindex('e','hello');left('richard',4);len('richard');lower('richard');'sql'+ltrim('richard');replicate('action',2);reverse('action');right('richard',4);rtrim('richard')+'sql';patindex('%box%','actionbox');'richard'+space(2)+'hill';stuff('weather',2,2,'i');substring('weather',2,2);upper('richard');dateadd(dd,10,getdate());datediff(dy,getdate(),'2005-10-01');datepart(dw,'2004-10-01');datename(dw,'2004-10-01')。答:测试代码为:printascii('sql');printchar(66);printcharindex('e','hello');printleft('richard',4);printlen('richard');printlower('richard');print'sql'+ltrim('richard');printreplicate('action',2);printreverse('action');printright('richard',4);printrtrim('richard')+'sql';printpatindex('%box%','actionbox');print'richard'+space(2)+'hill';printstuff('weather',2,2,'i');printsubstring('weather',2,2);printupper('richard');printdateadd(dd,10,getdate());printdatediff(dy,getdate(),'2005-10-01');printdatepart(dw,'2004-10-01');printdatename(dw,'2004-10-01')。结果为:115;B;2;rich;7;Richard;Sqlrichard;Actionaction;Noitca;Hard;Richardsql;7;richardhill;wither;ea;RICHARD;071720089:05PM;-1010;6;星期五。问答题:利用northwind数据库完成查询员工有多少个。查询单价最低的商品查询产品的平均单价查询所有超过平均单价的产品。查询单价最高产品和最低产品的价格差。取字符串“123987”中的后三位字符。查询所有低于平均单价的产品信息。查询单价最高产品和平均单价的价格差。查询产品价格最低的产品的供应商名称。查询哪个供应商的产品价格最高。