单选题
在SQL Server中,现有订单表orders,其中包括列customername(客户姓名),amount(订单金额),orderid(订单编号)以下能够查询客户张洪涛订单数量以及总金额的SQL是( )
A
select count(*) 订单数,sum(amount) 金额 from orders where customername='张洪涛'
B
select sum(*) 订单数,sum(amount) 金额 from orders where customername='张洪涛'
C
select count(*) 订单数,count(amount) 金额 from orders where customername='张洪涛'
D
select count(*) 订单数,sum(amount) 金额 from orders where customername is '张洪涛'
答案解析
正确答案:A
解析:
概念理解
相关题目
单选题
在C#中,int num1=10,num2=22,num3=44;
Console.WriteLine("{1},{2},{0}",num1,num2,num3);
程序的运行结果是( )
单选题
在C#中,string str="china,hubei,shiyan,hgzy";
Console.WriteLine(str.Split(':').Length);
该代码执行的结果是( )
单选题
在C#中,如果判断一个或者多个连续字符在目标字符串中是否存在,使用Stirng类的( )方法
单选题
在C#中,下列选项中,关于DataReader对象的描述,正确的是( )【选三项】
单选题
在C#中,ExecuteNonQuery( )方法的返回值类型是( )
单选题
在C#中,ConnectionState对象的枚举值包括( )【选三项】
单选题
在C#中,下列选项中,关于Connection对象描述错误的是( )
单选题
在C#中,.net中,常用的系统命名空间有( )【选三项】
单选题
在C#中,下列属于对象的是( )【选两项】
单选题
在C#中,下列关于窗体事件的描述,不正确的是( )
