一起答
单选

● 某超市的商品(商品号,商品名称,生产商,单价)和仓库(仓库号,地址,电话,商品号,库存量)两个基本关系如表1和表2所示。

  • a. 仓库关系的主键是 (37) ,该关系没有达到第三范式的原因是 (38) ;
  • b. 查询联想生产的激光打印机的总库存量的SQL语句如下:    SELECT  商品名称,  (39)    
  • FROM 商品,仓库    WHERE    (40)   AND    (41)  ;
  • c. 若仓库关系的地址不能为空,请将下述仓库关系SQL语句的空缺部分补充完整
  • CREATE TABLE 仓库(仓库号CHAR(2),    地址 CHAR(20)    (42)  ,    电话 CHAR(20),    商品号 CHAR(5),    库存量NUMERIC(5),    &nb
  • A. 仓库号             
  • B. 商品号,地址  
  • C. 仓库号,地址              
  • D. 仓库号,商品号    (38)
  • A. 没有消除非主属性对码的部分函数依赖,如:仓库号→电话
  • B. 没有消除非主属性对码的部分函数依赖,如:地址→电话
  • C. 只消除了非主属性对码的部分函数依赖,而未消除传递函数依赖
  • D. 只消除了非主属性对码的传递函数依赖,而未消除部分函数依赖    (39)
  • A. NUMBER(库存量)       
  • B. SUM(库存量)  
  • C. COUNT(库存量)       
  • D. TOTAL(库存量)    (40)
  • A. 生产商=联想           
  • B. 仓库. 生产商=联想
  • C. 生产商='联想'          
  • D. 仓库. 生产商='联想'    (41)
  • A. 商品名称=激光打印机 AND 商品.商品号=仓库.商品号
  • B. 商品名称='激光打印机' AND 商品.商品号=仓库.商品号
  • C. 商品名称=激光打印机 OR 商品.商品号=仓库.商品号
  • D. 商品名称='激光打印机' OR 商品.商品号=仓库.商品号    (42)
  • A. NOT NULL           
  • B. UNIQUE
  • C. NOT NULL UNIQUE       
  • D. PRIMARY KEY    (43)
  • A. PRIMARY KEY(仓库号)
  • B. PRIMARY KEY(仓库号,商品号)
  • C. PRIMARY KEY(商品号,地址)
  • D. PRIMARY KEY(仓库号,地址)    (44)
  • A. FOREIGN KEY(仓库号)REFERENCES 仓库号
  • B. FOREIGN KEY(仓库号)REFERENCES 仓库(仓库号)
  • C. FOREIGN KEY(商品号)REFERENCES 仓库(商品号)
  • D. FOREIGN KEY(商品号)REFERENCES 商品(商品号)
参考答案
查看试卷详情
相关试题
  1. ● HTML中标记用于定义表格的 (69) 。

    (69)

    • A.行             
    • B.列              
    • C.单元格            
    • D.标题
  2.  ● For nearly ten years, the Unified Modeling Language (UML) has been the industry standard for visualizing, specifying, constructing, and documenting the   (71)   of a software-intensive system. As the  (72)   standard modeling language, the UML facilitates communication and reduces confusion among project  (73) . The recent standardization of UML 2.0 has further extended the language's scope and viability. Its inherent expressiveness allows users to  (74)   everything from enterprise information systems and distributed Web-based applications to real-time embedded systems.  The UML is not limited to modeling software. In fact, it is expressive enough to model (75) systems, such as workflow in the legal system, the structure and behavior. of a patient healthcare system, software engineering in aircraft combat systems, and the design of hardware. To understand the UML, you need to form. a conceptual model of the language, and this requires learning three major elements: the UML's basic building blocks, the rules that dictate how those building blocks may be put together, and some common mechanisms that apply throughout the UML.

    (71)

    • A. classes       
    • B. components 
    • C. sequences         
    • D. artifacts    (72)
    • A. real           
    • B. legal     
    • C. de facto         
    • D. illegal    (73)
    • A. investors            
    • B. developers   
  3. ● 一个 B 类网络的子网掩码为 255.255.224.0,则这个网络被划分成了 (66) 个子网。

    (66)

    • A.  2       
    • B.  4     
    • C.  6     
    • D.  8
  4. ● HTML元素中, (68) 属性用于定义超链接被鼠标点击后所显示的颜色。 

     (68)

    • A.alink     
    • B.background 
    • C.bgcolor   
    • D.vlink
  5. ● 在Windows系统中设置默认路由的作用是 (67) 。

    (67)

    • A.当主机接收到一个访问请求时首先选择的路由   
    • B.当没有其他路由可选时最后选择的路由 
    • C.访问本地主机的路由
    • D.必须选择的路由
  6.   ● 数据仓库在收集数据过程中, 会遇到一些略微不一致但可以纠正的数据, 纠正的过程称为 (65) 。

    (65)

    • A. 数据清洗   
    • B. 数据转换   
    • C. 数据抽取   
    • D. 数据装载
  7. ● 根据分布式数据库系统中的两阶段提交协议(2PC),有如下操作指令:

    ① 协调器向参与者发prepare消息;

    ② 参与者向协调器发回ready消息;

    ③ 参与者向协调器发回abort消息;

    ④ 协调器向参与者发commit消息;

    ⑤ 协调器向参与者发rollback消息; 满足2PC 的序列是 (64) 。

    (64)

    • A. ①②⑤     
    • B. ①②④   
    • C. ②③⑤   
    • D. ②③④
  8. ● 在分布式数据库系统中,应用程序直接使用本结点数据的性质称为 (63) 。

    (63)

    • A. 共享性     
    • B. 自治性   
    • C. 可用性   
    • D. 分布性
  9. ● 要实现记录的物理顺序与索引项次序一致,应选择的索引类型是 (61) 。

    (61)

    • A. HASH 索引   
    • B. 聚簇索引   
    • C. B+树索引     
    • D. 单一索引
  10. ● 在C/S 体系结构中,客户端执行的操作是 (55) 。

    (55)

    • A. 触发器     
    • B. 嵌入式SQL 
    • C. 存储过程   
    • D. 扩展存储过程