SQL的问题,例如:编写查询语句 要求查询所有lastname字段以s开头的客户的lastname和first name大哥们,正在考试中,在线等1、 编写查询语句,要求查询tblCustomer数据表中所有字段city值为’ Seattle’或

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/08 07:13:39
SQL的问题,例如:编写查询语句 要求查询所有lastname字段以s开头的客户的lastname和first name大哥们,正在考试中,在线等1、 编写查询语句,要求查询tblCustomer数据表中所有字段city值为’ Seattle’或

SQL的问题,例如:编写查询语句 要求查询所有lastname字段以s开头的客户的lastname和first name大哥们,正在考试中,在线等1、 编写查询语句,要求查询tblCustomer数据表中所有字段city值为’ Seattle’或
SQL的问题,例如:编写查询语句 要求查询所有lastname字段以s开头的客户的lastname和first name
大哥们,正在考试中,在线等
1、 编写查询语句,要求查询tblCustomer数据表中所有字段city值为’ Seattle’或’Kent’的客户编号CustomID;
【答题】

87
2、 编写查询语句,要求查询所有LastName字段以S开头的客户的LastName和FirstName;
【答题】
3、 编写查询语句,要求查询所有ZipCode字段值介于98103~98109之间的客户LastName和FirstName;
【答题】
4、 编写查询语句,要求查询所有Phone字段值为NULL的客户LastName和FirstName;
【答题】
5、 编写查询语句,要求查询city(城市)人数大于1人的city名称和人数,查询结果以city名称升序、city总人数降序显示;
【答题】

SQL的问题,例如:编写查询语句 要求查询所有lastname字段以s开头的客户的lastname和first name大哥们,正在考试中,在线等1、 编写查询语句,要求查询tblCustomer数据表中所有字段city值为’ Seattle’或
1: select CustomID from tblCustomer where city = 'Seattle' or city = 'Kent'
2: select LastName,FirstName from tblCustomer where LastName like 'S%'
3: select LastName,FirstName from tblCustomer where ZipCode between 98103 and 98109
4: select LastName,FirstName from tblCustomer where Phone is NULL
5: select city,count(city) as num from tblCustomer group by city having num > 1 order by city,num desc