• edited by
29,873 views
92 92 votes

Consider a relational table with a single record for each registered student with the following attributes:

  1. $\text {Registration_Num:}$ Unique registration number for each registered student
  2. $\text {UID:}$ Unique identity number, unique at the national level for each citizen
  3. $\text {BankAccount_Num:}$ Unique account number at the bank. A student can have multiple accounts or joint accounts. This attribute stores the primary account number.
  4. $\text {Name:}$ Name of the student
  5. $\text {Hostel_Room:}$ Room number of the hostel

Which of the following options is INCORRECT?

  1. $\text {BankAccount_Num}$ is a candidate key
  2. $\text {Registration_Num}$ can be a primary key
  3. $\text {UID}$ is a candidate key if all students are from the same country
  4. If $S$ is a super key such that $S \cap \text{UID}$ is $\text{NULL}$ then $S \cup \text{UID}$ is also a superkey

7 Answers

Best answer
109 109 votes

Answer is (A)

A relation is given (Registration_Num, UID, BankAccount_Num, Name, Hostel_Room).

Now, Registration_Num is unique for each student. So with this, we can identify each student. Hence, this can be the primary key.

UID: It's an identification number for a person in a country. $($Say you're in India and your UID is $0243.$ Someone in Pakistan may also have the same UID as $0243).$ So, if all students are from India (that is, the same country) then their UID will be different and then UID will be a Candidate key.

If S is a super key then S $\cup$ UID will be a Super key. e.g.  R(A, B, C, D), If AB is a superkey then ABC, ABCD are also superkey.

BankAccount_Num is not a candidate key, because a student can have multiple accounts or joint accounts. We can not identify each student uniquely with BankAccount_Num.

• edited by
23 23 votes
Ans is A

can have possible duplicate values

As in case of joint account maybe 2 students  having joint account together.

In d) any non key attribute combined with superkey can uniquely identify all attributes.
3 3 votes

Answer is (A):

Option A: Note the given information about “BankAccount_Num”

BankAccount_Num: Unique account number at the bank. A student can have multiple accounts or joint accounts. This attribute stores the primary account number.

 

Note:- Here Multiple account or joint account means “if a student having Multiple account or joint account it means Two student can be joined together for joint Account(two student can have same account no), So we can not consider it as a Condidate key.”

           

0 0 votes

Option (A) is Incorrect Because In multiple and Joint Bank Account  For Two or more person Bank account can be same....

That why Bank Account should not be a candidate Key...

Answer:
Position:
Show:

Related questions

76 76 votes
4 answers 4 answers
24.7k
24.7k views
go_editor asked Sep 29, 2014
24,703 views
On a non-pipelined sequential processor, a program segment, which is the part of the interrupt service routine, is given to transfer $500$ bytes from an I/O device to mem...
52 52 votes
2 answers 2 answers
19.8k
19.8k views
go_editor asked Sep 29, 2014
19,794 views
Database table by name $\text{Loan_Records}$ is given below.$$\begin{array}{|c|c|c|} \hline \textbf {Borrower} & \textbf {Bank_Manager} &\textbf {Loan_Amount} \\\hline \...
64 64 votes
6 answers 6 answers
18.6k
18.6k views
go_editor asked Sep 29, 2014
18,569 views
Consider a relational table $r$ with sufficient number of records, having attributes $A_1, A_2, \dots ,A_n$ and let $1 \leq p \leq n$. Two queries $Q1$ and $Q2$ are given...
59 59 votes
6 answers 6 answers
20.3k
20.3k views
go_editor asked Sep 29, 2014
20,304 views
Consider a database table T containing two columns $\text{X}$ and $\text{Y}$ each of type $\text{integer}$. After the creation of the table, one record $\text{(X=1, Y=1)}...