edited by
17,833 views
58 votes
58 votes

A relation $\text{Empdtl}$ is defined with attributes empcode (unique), name, street, city, state and pincode. For any pincode, there is only one city and state. Also, for any given street, city and state, there is just one pincode. In normalization terms, $\text{Empdtl}$ is a relation in

  1. $\textsf{1NF}$ only
  2. $\textsf{2NF}$ and hence also in $\textsf{1NF}$
  3. $\textsf{3NF}$ and hence also in $\textsf{2NF}$ and $\textsf{1NF}$
  4. $\textsf{BCNF}$ and hence also in $\textsf{3NF}$, $\textsf{2NF}$ and $\textsf{1NF}$
edited by

6 Answers

0 votes
0 votes

If we do not consider empcode attribute as a primary key(as not given in the Q.) then,

 

we have to find the candidate keys form the given FDs and the FDs are==>

 

P -> C 

 

P -> Sta

 

St,C,Sta -> P 

 

 So candidate keys will be ==> (E,N,St,P) and (E,N,St,C,Sta).

 

So all attributes will be prime attributes.

 

1. Checking for BCNF ==> LHS of the FDs are not superkeys so it will not be in BCNF.

 

2. Checking for 3NF ==> as all attributes are prime attributes so the relation Empdtl will be in 3NF.

 

 

 

Then ​​​​The ans will be (c)But if it is mandatory to assume the unique attribute as primary key , then the ans will be (b).

–3 votes
–3 votes

pincode -> city, state
street,city,state -> pincode
 

The relation has no partial dependency. So, it is in 2NF

Now, check for 3NF

For being transitive dependency, there should be a nonprime->nonprime dependency will be there.

But here no such dependency.

Moreover if a relation is in 3NF, then either RHS each relation will be in prime attribute, or LHS of each relation will be super key.

Here , these condition satisfies. So, relation is in 3NF Ans D)

Answer:

Related questions

38 votes
38 votes
3 answers
2
Ishrat Jahan asked Nov 2, 2014
11,018 views
Consider two tables in a relational database with columns and rows as follows:$$\overset{\text{Table: Student}}{\begin{array}{|c|c|c|} \hline \textbf {Roll_no} & \textbf{...
43 votes
43 votes
6 answers
3
Ishrat Jahan asked Nov 2, 2014
12,418 views
Consider the following schedule $S$ of transactions $T1$ and $T2:$$${\begin{array}{l|l}\textbf{T1}& \textbf{T2} \\\hline\text{Read(A)} \\\text{A = A – 10}\\& \text...
43 votes
43 votes
5 answers
4
Ishrat Jahan asked Nov 2, 2014
10,750 views
A table T1 in a relational database has the following rows and columns: $$\begin{array}{|c|c|c|} \hline \text {Roll no. } & \text {Marks} \\\hline 1& 10 \\\hline 2 & 20 ...