English 中文(简体)
• 如何生产第三种正常形式和商法基金会分解
原标题:how to produce a third normal form and BCNF decompositions

I m 试图生产一个3个NF和英国驻巴黎基金会的 de。 我一直在研究算法,但我对如何这样做感到非常困惑。

如果我仅作以下发言:F ={A->F, A->G,CF->A, BG->C),我已经确定了关系的关键候选人之一,即:。 A。 然后,我做了什么?

我一直在研究一些例子,其中包括:

F = {A → AB,A → AC,A → B,A → C,B → BC}

缩略语:F' ={A ——B ——C}

最终结果如下:(AB,A--B), (BC,B--C)。 他们如何这样做?

问题回答

If I have my minimal cover say: F = {A->F, A->G, CF->A, BG->C) and I have identified one candidate key for the relation, say it is A. Then what exactly do I do?

F并非最低的覆盖面:必须结合A->、F和A->、G到A->FG

即便有价值A也不可能成为F类的关键候选人,因为B并不属于A类封锁。 可能的候选关键将是AB。

对3个基金来说,你首先在F中为每个附属公司,即:

R1(A,F,G) R2(A,C,F) R3(B,C,G)

接下来,请检查其中一张表格是否含有候选人钥匙。 自2006年以来 B只出现在受扶养人的左边,B应始终是候选人的关键。 唯一与B的表格是R3,其中不含候选人钥匙(核对表!)。 因此,我们增加了一个新的表R4, 候选人是属性的关键。

R4(A,B)

最后,我们检查其中一张表格的特性是否载于另一张表格的一套属性。 我们的榜样不是这样。

因此,我国的3个驻伊拉克多国部队的撤离是

  R1(A,F,G) R2(A,C,F) R3(B,C,G)  R4(A,B)

对英国驻巴基金会来说,你从R(A,B,C,F,G)开始,并调查英国驻巴基金会的违规行为。

例如,A->FG是违反巴农联的行为,因为这一依赖性并非三重,A并非一key。 因此,我们把R分裂成一体。

R1(A,F,G) and R2(A,B,C)

取得的任何关系都无一包含侵犯巴农基金会的行为,因此这一进程在此停止。





相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签