• edited by
44,120 views
87 87 votes

Consider the following relational schema:

  • $\text{Suppliers}(\underline{\text{sid:integer}},\text{ sname:string, city:string, street:string})$ 
  • $\text{Parts}(\underline{\text{pid:integer}}, \text{ pname:string, color:string})$ 
  • $\text{Catalog}(\underline {\text{sid:integer, pid:integer}}, \text{cost:real})$

Assume that, in the suppliers relation above, each supplier and each street within a city has unique name, and (sname, city) forms a candidate key. No other functional dependencies are implied other than those implied by primary and candidate keys. Which one of the following is $\text{TRUE}$ about the above schema?

  1. The schema is in $\text{BCNF}$
  2. The schema is in $\text{3NF}$ but not in $\text{BCNF}$
  3. The schema is in $\text{2NF}$ but not in $\text{3NF}$
  4. The schema is not in $\text{2NF}$

10 Answers

Best answer
110 110 votes

The non-trivial $\text{FD}$s are 

  1. (sname, city) $\to$ street
  2. sid $\to$ street
  3. (sname, city) $\to$ sid
  4. sid $\to$ sname
  5. sid $\to$ city

For all these, $\text{LHS}$ is a super key and hence $\text{BCNF}$ condition is satisfied. But we have some more dependencies here:

"each supplier and each street within a city has unique name"

This basically means each supplier in a city has unique name making (sname, city) determine sid and hence making it a candidate key. Each street within a city also has a unique name and so (street, city) is also a candidate key. Even then with all $3$ candidate keys (for Suppliers schema), for any $\text{FD}$, the $\text{LHS}$ is a super key here, and hence the relation schema (for other two relations it is straight forward) is in $\text{BCNF}$.

http://db.grussell.org/section009.html

Correct Answer: $A$

• edited by
35 35 votes
"No other functional dependencies are implied other than those implied by primary and candidate keys"

This line is sufficient to indicate that we have superkeys on LHS always which is the necessary condition to be the relation in BCNF.

So, option A is correct.

5 5 votes

From the given data the FDs will be ,

(Sid, Street) $\rightarrow$  Sname

As Sid is a primary key, then
(Sid, Street) will be super key.
Hence, it is in BCNF.

3 3 votes
i  think ans is d

because street and sname functionally depend on city (acc to question)
2 2 votes

In Supplier relation:

sid → sid, sname, city, street
sname, city → sid, sname, city, street
(given)

Primary attributes are: sname, city, sid

 

  • Check 2NF.
    Part of CK → non-prime attributes? No. So, 2NF.
     
  • Check 3NF
    Non-prime attribute → Non-prime attribute? No. So, 3NF.
     
  • Check BCNF
    For every X → Y, is X a Superkey? Yes. So, BCNF.

Option A.

 

PS: We can't directly check BCNF. Start with 2NF (Assuming 1NF is always satisfied)

1 1 vote
Please explain clearly i am not getting the concept that how we can conclude BCNF without FD's and by theory i think we can only derive that (sname , city) is candidate key and city --> sname but how bcnf is concluded ?
Answer:
Position:
Show:

Related questions

108 108 votes
13 answers 13 answers
57.8k
57.8k views
Kathleen asked Sep 22, 2014
57,778 views
Consider the following relational schema:$\text{Suppliers}(\underline{\text{sid:integer}},\text{ sname:string, city:string, street:string})$ $\text{Parts}(\underline{\tex...
100 100 votes
14 answers 14 answers
55.0k
55.0k views
Kathleen asked Sep 22, 2014
55,003 views
The following key values are inserted into a $B^+$ - tree in which order of the internal nodes is $3$, and that of the leaf nodes is $2$, in the sequence given below. The...
44 44 votes
3 answers 3 answers
11.4k
11.4k views
Kathleen asked Sep 22, 2014
11,413 views
Consider two transactions $T_1$ and $T_2$, and four schedules $S_1, S_2, S_3, S_4$, of $T_1$ and $T_2$ as given below:$T_1: R_1[x]W_1[x]W_1[y]$$T_2: R_2[x]R_2[y]W_2[y...
50 50 votes
7 answers 7 answers
18.7k
18.7k views
go_editor asked Apr 23, 2016
18,697 views
A hard disk has $63$ sectors per track, $10$ platters each with $2$ recording surfaces and $1000$ cylinders. The address of a sector is given as a triple $\langle c, h, s...