Upgrade to remove ads Show
Only ₩37,125/year
Terms in this set (25)Logical Database Design Process of transforming the conceptual data model into a logical data model
Relational Data Model Components Data structure: data are organized in tables Relation A named, two-dimensional table of data. Relation Qualifications It much have a unique name Key Fields Keys are special fields that serve as: Schema for Relations A relational schema describes the logical structure of a relational database. A short text statement: the name of a relation followed by the name of its attributes in parentheses... EMPLOYEE1 (EMPID, Name, DeptName, Salary) A graphic representation: a relation represented by a rectangle containing the attributes of the relation. Integrity Constraints Domain Constraints: a domain is the set of values that may be assigned to an attribute. It defines allowable values for an attribute. Domain definitions enforce domain integrity constraints (character size, date format, integer digit size, description, etc) Entity integrity: no primary key attribute may be null. All primary key fields must have data. Referential
Integrity: rule states that any foreign key value must match a primary key value in the relation of the one side. (or the foreign key can be null). The primary key of the relation of the one side becomes one attribute (the foreign key) in the relation on the many side. Referential Integrity Delete Rules: Foreign key an only be null if there is no mandatory minimum cardinality of the one side of relationship. Mapping Regular Entities to Relations 1. Simple attributes map directly onto the relation's fields Mapping Weak Entities Becomes a separate relation with a foreign key taken from the superior entity Primary key composed of partial identifier of weak entity and the primary key of identifying relation (strong entity) Binary Relationships 1:M: Primary key on the one side becomes a foreign key on the many side Mapping Associative Entities Identifier not assigned.. default primary key for the association relation is composed of the primary keys of the two entities (as in M:N relationship) If the associative relation has its own identifier, it will have the two other relations IDs as foreign keys Mapping Unary Relationships 1:M: recursive foreign key in same relation Mapping Ternary Relationships One relation for each entity and one for the associative
entity Surrogate key A serial number or other system assigned primary key for a relation Used when there are many primary keys to compose a composite primary key... it would be better to just make a surrogate key and put the other keys back to regular attributes or to foreign keys Mapping Supertype/Subtype Relationships One relation for supertype and each subtype 1:1 relationship established between supertype and each subtype, which superype as primary table Data Normalization Primary tool to validate and improve a logical design so that it satisfies certain constraints that avoid unnecessary duplication of data The process of decomposing relations with anomalies to produce smaller, well-structured relations. Well-structured Relations A relation that contains minimal data redundancy and allows users to insert, delete, and update rows without causing data inconsistencies. Goal is to avoid anomalies: **A table should not pertain to more than one entity type. Normal Form A state of a relation that requires that certain rules regarding relationships between attributes are satisfied. First Normal Form (1NF) No multivalued attributes Functional Dependency The value of one attribute (the determinant) determines the value of another attribute Candidate key: a unique identifier... one of the candidate keys will become the primary key... Each non-key field is functionally dependent on every candidate key Second Normal Form (2NF) 1NF plus every non-key attribute is fully functional dependent on the ENTIRE primary key. Should only be one primary key (or one set of relating primary keys) that define a relation.... Order ID and Product ID should not be in the same relation Third Normal Form (3NF) 2NF plus no transitive dependencies (functional dependencies on non-primary-key attributes. Solution: Non-key determinant with transitive dependencies go into a new table. Non-key determinant becomes primary key in the new table and stays as foreign key in old table. Merging Relations View integration: combining entities from multiple ER models into common relations Enterprise keys Primary key that are unique in the whole database, not just within a single relation Corresponds with the concept of an object ID in object-oriented systems Recommended textbook solutions
Computer Organization and Design MIPS Edition: The Hardware/Software Interface5th EditionDavid A. Patterson, John L. Hennessy 220 solutions
Engineering Electromagnetics8th EditionJohn Buck, William Hayt 483 solutions Introduction to Algorithms3rd EditionCharles E. Leiserson, Clifford Stein, Ronald L. Rivest, Thomas H. Cormen 720 solutions Big Java: Early Objects5th EditionCay S. Horstmann 1,008 solutions Sets with similar termsIS385 Chapter 950 terms nzxy Data Mgmt - Chapter 420 terms melanienicole70 Database Management Ch. 341 terms Andie_Swift Modern Database Management - Chapter 476 terms ABUIC Other sets by this creatorRevZilla Digital Marketing Co-op6 terms amanda_abrams8 MIS 343 Chapter 928 terms amanda_abrams8 MIS 343 Chapter 815 terms amanda_abrams8 MIS 343 Chapter 717 terms amanda_abrams8 Verified questionsCOMPUTER SCIENCE Show that the nth harmonic number is Ω(lg n) by splitting the summation. Verified answer
COMPUTER SCIENCE Under what circumstances do page faults occur? Describe the actions taken by the operating system when a page fault occurs. Verified answer COMPUTER SCIENCE True/False: The first parameter of a Python method definition is called this. Verified answer
COMPUTER SCIENCE Design and implement a class called Card that represents a standard playing card. Each card has a suit and a face value. Create a program that deals 20 random cards. Verified answer Other Quizlet setsCAPM365 terms Karen_Wichman Vocabulary Workshop G Units 1-9180 terms kernst Agroecology Midterm57 terms Allen_Warren9 Bible Doctrines SG 9-A42 terms Samcornelll Related questionsQUESTION Using the database depicted above, "Unit Price" is best described as 3 answers QUESTION (True or False) One objective of selecting a data type is to minimize storage space. 4 answers QUESTION What does a completeness check accomplish? 2 answers QUESTION Query results made to a transaction database are dynamic. (T/F) 4 answers Which rule states that every foreign key value must match the primary key value of a record in another table or must be null?Referential integrity requires that a foreign key must have a matching primary key or it must be null. This constraint is specified between two tables (parent and child); it maintains the correspondence between rows in these tables. It means the reference from a row in one table to another table must be valid.
Which rule states that a foreign key?Referential Integrity Rule in DBMS is based on Primary and Foreign Key. The Rule defines that a foreign key have a matching primary key. Reference from a table to another table should be valid. The rule states that the DEPT_ID in the Employee table has a matching valid DEPT_ID in the Department table.
Which of the following states that a foreign key can either be a value which is a primary key value of referenced table or it can have a null value?Referential integrity is a property of data stating references within it are valid. For referential integrity to hold in a relational database, any column in a base table that is declared a foreign key can contain either a null value, or only values from a parent table's primary key or a candidate key.
Which of the following constraints ensures that the foreign key value in the referencing relation must exist in the primary key attribute of the referenced relation?One of the major constraints on a relation is referential integrity, which states that every non-null foreign key must reference an existing primary key value.
|