Suppose we have a functional dependency from an attribute outside the primary key to an attribute inside the primary key. How can we get rid of this dependency (which I intuitively think it's bad)?
Particularly, suppose we have the following functional dependencies:
CS -> T
T -> C
where CS
is the primary key. In my example, it happens luckily that TS
could also initially be the primary key, so the situation is converted to:
TS -> C
T -> C
which is actually a situation where we don't have into the key dependencies anymore but we have a partial dependency, which can be solved easily by splitting our table into two tables as follows
| T | C |
and
| T | S |
but what if TS
wasn't also a primary key? How could we get rid of the initial into the key dependency/anomaly?