6nf

Composite vs Surrogate keys for Referential Integrity in 6NF

故事扮演 提交于 2019-11-28 18:01:43
Take three layers of information: Layer 1: Information This layer contains data with UNIQUE natural indexes and a surrogate key that is easily transferrable. Table Surnames: +-----------------------------+--------------+ | ID (Auto Increment, PK) | Surname | +-----------------------------+--------------+ | 1 | Smith | | 2 | Edwards | | 3 | Brown | +-----------------------------+--------------+ Table FirstNames +-----------------------------+--------------+ | ID (Auto Increment, PK) | FirstName | +-----------------------------+--------------+ | 1 | John | | 2 | Bob | | 3 | Mary | | 4 | Kate | +

Composite vs Surrogate keys for Referential Integrity in 6NF

时光怂恿深爱的人放手 提交于 2019-11-27 10:59:42
问题 Take three layers of information: Layer 1: Information This layer contains data with UNIQUE natural indexes and a surrogate key that is easily transferrable. Table Surnames: +-----------------------------+--------------+ | ID (Auto Increment, PK) | Surname | +-----------------------------+--------------+ | 1 | Smith | | 2 | Edwards | | 3 | Brown | +-----------------------------+--------------+ Table FirstNames +-----------------------------+--------------+ | ID (Auto Increment, PK) |

Designing an EAV database correctly for historical data

两盒软妹~` 提交于 2019-11-26 15:33:16
Intro I have been reading about EAV database and most of the short comings seem to be related to really, really, bad EAV designs or difficulty generating reports from the data . Usually when you see people complaining about EAV they are using less than three tables to try to replicate the functionally of separate tables + columns in a RDBMS. Sometimes that means storing everything from decimals to strings in a single TEXT value column. EAV also messes with the safe-guards over data integrity which can be very bad if you are not careful. However, EAV does provide an easy way to track historical

Designing an EAV database correctly for historical data

强颜欢笑 提交于 2019-11-26 04:28:24
问题 Intro I have been reading about EAV database and most of the short comings seem to be related to really, really, bad EAV designs or difficulty generating reports from the data. Usually when you see people complaining about EAV they are using less than three tables to try to replicate the functionally of separate tables + columns in a RDBMS. Sometimes that means storing everything from decimals to strings in a single TEXT value column. EAV also messes with the safe-guards over data integrity