题目详情

商品关系P(商品名,条形码,产地,价格)中的()属性可以作为该关系的主键。查询由“北京”生产的185升电冰箱的SQL语句应该是:

SELECT商品名,产地

FROM P

WHERE产地=‘北京’AND();

将价格小于50的商品上调5%的SQL语句应该是:

UPDATE P

()

WHERE价格<50;

  • A.条形码=185升电冰箱
  • B.条形码=‘185升电冰箱’
  • C.商品名=185升电冰箱
  • D.商品名=‘185升电冰箱’

正确答案及解析

正确答案
D
解析

条形码是由宽度不同、反射率不同的长形条和空并按照一定的编码规则(码制)编制而成的,用以表达一组数字或字母符号信息的图形标识符。利用条形码可以标出商品的生产国、制造厂家、商品名称、生产日期、图书分类号、邮件起止地点、类别和日期等信息,所以,条形码在商品流通、图书管理、邮电管理和银行系统等许多领域都得到了广泛的应用。显然,本题商品关系P(商品名,条形码,产地,价格)中的条形码属性可以作为该关系的主键。

查询由“北京”生产的185L电冰箱的SQL语句应该是:

SELECT商品名,产地

FROM P

WHERE产地=‘北京’ AND 商品名=‘185L电冰箱’ ;

将价格小于50的商品上调5%的SQL语句应该是:

UPDATE P

SET价格=价格*1.05

WHERE价格<50;

包含此试题的试卷

你可能感兴趣的试题

单选题

(  )is the process of transforming information so it is unintelligible to anyone but the intended recipient.

  • A.Encryption
  • B.Decryption
  • C.Security
  • D.Protection
查看答案
单选题

As each application module is completed,it undergoes(  )to ensure that it operates correctly and reliably.

  • A.unit testing
  • B.integration testing
  • C.system testing
  • D.acceptance testing
查看答案
单选题

(  )algorithm specifies the way to arrange data in a particular order.

  • A.Search
  • B.Random
  • C.Sorting
  • D.Merge
查看答案
单选题

After analyzing the source code,(  )generates machine instructions that will carry out the meaning of the program at a later time.

  • A.an interpreter
  • B.a linker
  • C.a compiler
  • D.a converter
查看答案
单选题

(  )can help organizations to better understand the information contained within the data and will also help identify the data that is most important to the business and future business decisions.

  • A.Data processing system
  • B.Big Data analytics
  • C.Cloud computing
  • D.Database management
查看答案

相关题库更多 +