网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)查询Customer表中所有客户的信息,要求显示CustomerCode、Name、Hometown和Telephone字段信息。SQL语句:SELECT()FROM Customer
- A、*
- B、ALL
- C、CustomerCode、Name、Hometown、Telephone
- D、CustomerCode,Name,Hometown,Telephone
参考答案
更多 “BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)查询Customer表中所有客户的信息,要求显示CustomerCode、Name、Hometown和Telephone字段信息。SQL语句:SELECT()FROM CustomerA、*B、ALLC、CustomerCode、Name、Hometown、TelephoneD、CustomerCode,Name,Hometown,Telephone” 相关考题
考题
假设需要给某个客户表Customer添加注释信息:客户表,可以使用如下()方式
A.COMMENTONTABLECUSTOMERIS'客户表'B.COMMENTONCOLUMNCUSTOMER.CUSTOMER_NAMEIS'客户表'C.COMMENTONCOLUMNCUSTOMER.CUSTOMER_NAME'客户表'D.COMMENTONCOLUMNCUSTOMER.CUSTOMER_NAME'客户表'
考题
假设需要给某个客户表Customer的Customer_name列添加注释信息:客户姓名,可以使用如下()方式
A.COMMENTONTABLECUSTOMERIS'客户姓名'B.COMMENTONCOLUMNCUSTOMER.CUSTOMER_NAMEIS'客户姓名'C.COMMENTONCOLUMNCUSTOMER.CUSTOMER_NAME'客户姓名'D.COMMENTONCOLUMNCUSTOMER.CUSTOMER_NAME'客户姓名'
考题
BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)删除Customer表中姓“刘”和姓“杨”的记录。SQL语句:DELETE FROMCustomer WHERE()A、LEFT(Name,1)=‘刘’ORLEFT(Name,1)=‘杨’B、NameLIKE‘刘%‘ORNameLIKE杨%‘C、NameLIKE‘[刘,杨]%‘D、NameLIKE‘[^刘,^杨]%
考题
BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)查询Customer表中所有客户的信息,SQL语句:SELECT()FROMCustomerA、*B、CustomerCode,Name,Hometown,Sex,Email,Telephone,LoginTime,PassWordC、CustomerCode,Hometown,Telephone,Name,Sex,Email,LoginTime,PassWordD、CustomerCode~PassWord
考题
BookStore数据库中有出版社表将Publisher表中出版社代号(CustomerCode)为“01”的出版社联系电话(Telephone)修改为“010-79797979”。SQL语句:()A、UPDATE PublisherSET Telephone=010-79797979 WHERE PublisherCode=01B、UPDATE PublisherSET Telephone=‘010-79797979’ WHERE PublisherCode=‘01’C、UPDATE FROMPublisher SET Telephone=‘010-79797979’ WHERE PublisherCode=‘01’D、UPDATE Publisher Telephone=‘010-79797979’ WHERE PublisherCode=‘01
考题
BookStore数据库中有客户评价表CustomerEvaluation(CustomerCode,VIPClass,Author,EvaluateDate),其中PublishTime是datetime类型。查询用户等级(VIPClass)为“A”的客户编号(CustomerCode)和评价时间(EvaluateDate),要求显示标题分别为“客户编号”和“评价时间”。SQL语句:SELECT Customer CodeAs客户编号,Evaluate DateAs评价时间FROM Customer Evaluation WHERE()A、VIPClass=‘A’B、VIPClass=”A”C、VIPClass=AD、VIPClass==A
考题
BookStore数据库中有订单表Order(OrderCode,CustomerCode,TotalPrice,Address,OrderTime,OrderStatus)查询订单总价(TotalPrice)在100到200元之间的订单信息。SQL语句:SELECTOrderCode,TotalPrice,OrderTime,OrderStatus FROM[Order]WHERE()A、TotalPriceBETWEEN 100 AND 200B、TotalPriceNOT BETWEEN 100 AND 200C、100=TotalPrice=200D、TotalPrice=100AndTotalPrice=200
考题
BookStore数据库中有订单表Order(OrderCode,CustomerCode,TotalPrice,Address,OrderTime,OrderStatus)SELECTTOP3OrderCode,OrderTime,OrderStatusFROM[Order]语句中TOP3的含义是()A、前3个字段B、前3条属性C、前3个记录D、前3个别名
考题
数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求写SQL语句查询出表中所有的数据,下列哪个SQL语句是正确的()A、Select* From StudentB、Select Name From StudentC、Select Name,Age,IDCard From StudentD、Select Name,Age,IDCard,Sex From Student
考题
数据库中有一张表名称为Student,有列Number,Name,Age,IDCard,Sex。主键为Number。要求查询所有男同学信息,下列哪个SQL语句是正确的?()A、Select* From Student Where Sex=’男’B、Select* From Student Where Number NotIn(Select Number From Student Where Sex=’男’)C、Select* From Student Where NumberIn(Select Numbe rFrom Student Where Sex=’男’)D、Select* From Student Where Sex’男’
考题
某公司使用SQLServer作为数据信息存储的平台,其中Sales数据库有一个用于存放产品信息的表Products。现在销售部门的人员临时需要一张商品价格表,要求列出所有产品的名称和其单价,并且以中文显示列名,那么下面SQL语句中可以满足条件的是()A、SELECT Product Name AS’产品的名称’,Unit Price AS’单价’FROM ProductsB、SELECT Product Name=产品的名称,Unit Price=单价FROM ProductsC、SELECT Product Name=“产品的名称”,Uni tPrice=“单价”FROM ProductsD、SELECT Product Name’产品的名称’,Unit Price’单价’FROM Products
考题
数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求写SQL语句查询出表中年龄介于20和30岁之间的数据,下列哪个SQL语句是正确的?()A、Select* From Student Where Age=20 ANDAge=30B、Select* From Student Where Age=20 ANDAge=30C、Select* From Student Where Age BET WENN 20AND30D、Select* From Student Where Age=20Age=30"
考题
现有表Employee,字段:id(int)、firstname(varchar)、lastname(varchar);以下sql语句错误的是()A、select firstname+’.’+lastnameas’name’from employeeB、select firstname+’.’+lastname=’name’from employeeC、select’name’=firstname+’.’+lastnamefrom employeeD、select firstname,lastname from employee
考题
数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求查询所有男同学信息,下列哪个SQL语句是正确的?()A、Select*FromStudentWhereSex=’男’B、Select*FromStudentWhereSex’女’C、Select*FromStudentWhereSexLike’男’D、Select*FromStudentWhereSexIn’男’
考题
如果要查询book表中所有书名以“数据库”开头的书籍价格,下列()语句是正确的。A、SELECT price FROM book WHERE book_name=“数据库*”B、SELECT price FROM book WHERE book_name LIKE“数据库*”C、SELECT price FROM book WHERE book_name=“数据库%”D、SELECT price FROM book WHERE book_name LIKE“数据库%”
考题
下列哪些SQL语句可以查询出User表中name为张三的记录()。A、SELECT * FROM User WHERE name = ’张三’B、SELECT * FROM User WHERE name = ’张三’ LIMIT 0,1C、SELECT * FROM User WHERE name LIKE ’张三’D、SELECT * FROM User WHERE name LIKE ’%张三%’
考题
多选题BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)查询Customer表中所有客户的信息,SQL语句:SELECT()FROMCustomerA*BCustomerCode,Name,Hometown,Sex,Email,Telephone,LoginTime,PassWordCCustomerCode,Hometown,Telephone,Name,Sex,Email,LoginTime,PassWordDCustomerCode~PassWord
考题
多选题BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)删除Customer表中姓“刘”和姓“杨”的记录。SQL语句:DELETE FROMCustomer WHERE()ALEFT(Name,1)=‘刘’ORLEFT(Name,1)=‘杨’BNameLIKE‘刘%‘ORNameLIKE杨%‘CNameLIKE‘[刘,杨]%‘DNameLIKE‘[^刘,^杨]%
考题
多选题BookStore数据库中有订单表Order(OrderCode,CustomerCode,TotalPrice,Address,OrderTime,OrderStatus)查询订单总价(TotalPrice)在100到200元之间的订单信息。SQL语句:SELECTOrderCode,TotalPrice,OrderTime,OrderStatus FROM[Order]WHERE()ATotalPriceBETWEEN 100 AND 200BTotalPriceNOT BETWEEN 100 AND 200C100=TotalPrice=200DTotalPrice=100AndTotalPrice=200
考题
单选题BookStore数据库中有客户表Customer(CustomerCode,Name,Sex,Hometown,Email,Telephone,LoginDate,Password)查询Customer表中所有客户的信息,要求显示CustomerCode、Name、Hometown和Telephone字段信息。SQL语句:SELECT()FROM CustomerA
*B
ALLC
CustomerCode、Name、Hometown、TelephoneD
CustomerCode,Name,Hometown,Telephone
考题
单选题BookStore数据库中有出版社表将Publisher表中出版社代号(CustomerCode)为“01”的出版社联系电话(Telephone)修改为“010-79797979”。SQL语句:()A
UPDATE PublisherSET Telephone=010-79797979 WHERE PublisherCode=01B
UPDATE PublisherSET Telephone=‘010-79797979’ WHERE PublisherCode=‘01’C
UPDATE FROMPublisher SET Telephone=‘010-79797979’ WHERE PublisherCode=‘01’D
UPDATE Publisher Telephone=‘010-79797979’ WHERE PublisherCode=‘01
考题
多选题数据库中有一张表名称为Student,有列Number,Name,Age,IDCard,Sex。主键为Number。要求查询所有男同学信息,下列哪个SQL语句是正确的?()ASelect* From Student Where Sex=’男’BSelect* From Student Where Number NotIn(Select Number From Student Where Sex=’男’)CSelect* From Student Where NumberIn(Select Numbe rFrom Student Where Sex=’男’)DSelect* From Student Where Sex’男’
考题
多选题数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求写SQL语句查询出表中所有的数据,下列哪个SQL语句是正确的()ASelect* From StudentBSelect Name From StudentCSelect Name,Age,IDCard From StudentDSelect Name,Age,IDCard,Sex From Student
考题
单选题BookStore数据库中有客户评价表CustomerEvaluation(CustomerCode,VIPClass,Author,EvaluateDate),其中PublishTime是datetime类型。查询用户等级(VIPClass)为“A”的客户编号(CustomerCode)和评价时间(EvaluateDate),要求显示标题分别为“客户编号”和“评价时间”。SQL语句:SELECT Customer CodeAs客户编号,Evaluate DateAs评价时间FROM Customer Evaluation WHERE()A
VIPClass=‘A’B
VIPClass=”A”C
VIPClass=AD
VIPClass==A
考题
单选题数据库中有一张表名称为Student,有列Name,Age,IDCard,Sex。要求查询所有男同学信息,下列哪个SQL语句是正确的?()A
Select*FromStudentWhereSex=’男’B
Select*FromStudentWhereSex’女’C
Select*FromStudentWhereSexLike’男’D
Select*FromStudentWhereSexIn’男’
考题
( 难度:中等)在Hive中,以下哪个SQL语句是错误的A.hive> SELECT ID, NAME, o.AMOUNT, o.DATE > FROM CUSTOMERS c > LEFT OUTER JOIN ORDERS o > ON (ID = o.CUSTOMER_ID);B.hive> SELECT ID, NAME, o.AMOUNT, o.DATE > FROM CUSTOMERS c > RIGHT OUTER JOIN ORDERS o > ON (ID = o.CUSTOMER_ID);C.hive> SELECT ID, NAME, o.AMOUNT, o.DATE > FROM CUSTOMERS c > FULL OUTER JOIN ORDERS o > ON (ID = o.CUSTOMER_ID);D.hive> SELECT ID, NAME, o.AMOUNT, o.DATE > FROM CUSTOMERS c > FULL OUTER JOIN ORDERS o > ON (ID = o.CUSTOMER_ID OR Name = o.Name);
热门标签
最新试卷