题目详情

某银行信用卡额度关系C(信用卡号,用户名,身份证号,最高消费额度,累计消 费额)中,信用卡号唯一标识关系C的每一个元组。一个身份证只允许办理一张信用卡。 关系C有(  )。

  • A.1个候选键,即信用卡号
  • B.2个候选键,即信用卡号、身份证号
  • C.1个候选键,即身份证号
  • D.1个候选键,即信用卡号、用户名

正确答案及解析

正确答案
B
解析

在关系数据库候选码/候选键:如果在一个关系中,存在一个属性(或属性组)都能用来唯一标识该关系的元组,并不含有多余的属性,这个属性(或属性组)称为该关系的候选码或候选键。

依据题干的描述信任卡号能唯一标识关系C的每一个元组,且不含多余属性,因此信任卡号为候选码

依据题干的描述,一个身份证只允许办理一张信任卡,也就是一个身份证只对应一张信任卡,身份证号函数决定信任卡号,综上所述身份证也能唯一标识每一个元组,且不含多余属性,因此身份证号为候选码

综上所述,本题中存在2个候选码:信任卡号和身份证号

包含此试题的试卷

你可能感兴趣的试题

单选题

Advancements in ( )have contributed to the growth of the automotive industry through the creation and evolution of self-driving vehicles.

  • A.Artificial Intelligence
  • B.Cloud Computing
  • C.Internet of Things
  • D.Big Data
查看答案
单选题

In project human resource management , ( )is not a source of power for the project manager.

  • A.referent power
  • B.expert power
  • C.reward power
  • D.audit power
查看答案
单选题

At the project establishment stage , the feasibility study mainly includes techinical feasibility analysis , ( ), operation environment feasibility analysis and other aspects of feasibility analysis.

  • A.detail feasibility analysis
  • B.opportunity analysis
  • C.economic feasibility analysis
  • D.risk analysis
查看答案
单选题

( )is a grid that shows the project resources assigned to each work package.

  • A.Stakeholder engagement assessment matrix
  • B.Requirements traceability matrix
  • C.Probability and impact matrix
  • D.Responsibility assignment matrix
查看答案
单选题

Xinhua News Agency reported in January 2022,Chian will further promote the developmet of a digital economy during the 14th Five-Year Plan eriod(2021-2025). The plan also emphasized industrial ( )transformation.

  • A.digital
  • B.networking
  • C.intelligentize
  • D.informatization
查看答案

相关题库更多 +