Let R (ABCDE) be a relation schema and consider the following functional dependencies
F = { AB→ E, AD→B, B→ C, C→D}.
Find out the candidate key.
Case 1:
as B→C and C→D, so, B→D (transitivity)
as B→D so AB→AD (augmentation)
as AB→E so AB→ABE (reflexivity)
as AB→ABE, AND AB→AD so AB→ABCDE(union)
So the closure of AB is . so, AB is a candidate key.
Case 2:
as AD→B so AD→ABD (reflexivity)
as AB→E so ABD→DE (augmentation)
as AD→B and B→C so AD→C (transitivity)
as AD→ABD, AD→C and AD→DE so AD→ABCDE (union)
So the closure of AB is . so, AD is also a candidate key.
Define a Foreign key. Why is the concept needed? How does it play a role in the join operation?
Explain how to reduce a relationship set of an E-R diagram into relational schema.
Write a C program to print the fibonacci series.
What is “Top-Down and Bottom-Up Design” approach?
What are the difference between linear and non-linear data structure?
What is an unrolled linked list?
Write a C program to manage array operation using switch case.