我负责发现此关系内的异常情况。我发现了一些插入,删除和更新异常。数据库关系异常
Commission Percentage: the percentage of the total sales made by a salesperson that is paid as commission to that salesperson.
Year of Hire: the year the salesperson was first hired
Department Number: the number of the department where the salesperson works Manager Name: name of the manager of the department
不过,我迷茫了异常,我拉出。以下是声明:
在公司中不能有一个具有相同名称的经理,因为经理实体没有主要标识符,除了该名称可以在公司内重复使用。
可我知道我应该怎么短语上述声明,并在其下(更新/删除/插入)的异常,我应该包括它?
谢谢
我可要求提供补充援助下面还有:
- 你将如何改变当前的设计以及如何做新的设计地址你已经发现了与当前设计有关的问题。
我现在的设计是它拆分成3个关系: Salesperson(salespersonNumber, salespersonName, commissionPercentage, YearOfHire, deparetmentNumber)
Product(productNumber, productName, unitPrice)
Manager(managerNumber, managerName, departmentNumber)
不过,我错过了数量实体。 数量需要productNumber的复合关键字& salespersonNumber。 我应该自己在另一个关系吗?
Quantity(productNumber, salespersonNumber)
你有什么程序来识别和解决异常? PS:找到填充空白语句(*谓词*),其中空白用属性命名,一行值变成语句(*命题*)。真正提议的行会放在表格中,并为虚假留出。不要使用任何代词;重复使用属性。然后每当出现异常时,都会因为有问题的连词而引起异常。我们放弃AND并创建谓词是连词的新表。 – philipxy
你给“异常”定义了什么?因为“不可能有经理......”可能是一个*问题*(非正式术语),但它不是一个*异常*(技术术语).. – philipxy