Professional Documents
Culture Documents
Databaserealtion PDF
Databaserealtion PDF
By:D Mishra
Functional Dependency
The DeptId is our primary key. Here, DeptId uniquely identifies the DeptName attribute. This
is because if you want to know the department name, then at first you need to have the
DeptId.
Therefore, the above functional dependency between DeptId and DeptName can be
determined as DeptId is functionally dependent on DeptName −
DeptId = Department ID
DeptName = Department Name
DeptId DeptName
002 Marketing
003 HR
Trivial Functional Dependency
A ->B
Example
Example
A ->B
The above relation in INF has some attributes which are not depending
on the whole primary key. For example, Accountant Name, Accountant
Age, and group information are determined by Accountant Number and
are not dependent on Skill
Decomposition
decomposed.
Department.
● <Employee> Table
● So, the above decomposition is a Lossless Join Decomposition, because the two relations
contains one common field that is 'Eid' and therefore join is possible.
If the <Employee> table contains (Eid, Ename, Age, City, Salary) and <Department> table contains
(Deptid and DeptName), then it is not possible to join the two tables or relations, because there is no
BCNF is an extension to Third Normal Form (3NF) and is slightly stronger than
3NF.
The above relation is in 1NF, 2NF, 3NF, but not in BCNF. Here is the reason −Functional Dependency
{Package->Ground}
It has the determinant attribute Package on which Ground depends on is neither a Candidate Key nor a
superset of the candidate key.
<Package>
Package Ground
Gold G01
Silver G02
Bronze G01
<TomorrowBookings>