MGS351 Exam 2 review XCM C Flashcards
Relational Databases
-Stores data in the form of related tables
Relational Design
-Based on normalization and can be accomplished by using ERD’s
Benefits of Relational Databases and designs
(1) Making sure the data is good.
Example: Adding, Deleting, and updating records
(2) Powerful to use
Principles of Design Relational Databases
(1) you must become a business expert
(2) knowing that Poor Relational Databases design lead to system failure
(3) Having a Proper design because this accurately reflects the organizations business rules
(4) Relational database is both an art and science (Cost-benefit)
Entity Relationship Diagrams (ERD)
-Its a Diagramming tool to design a database (Blueprint)
If the ERD is designed properly then…?
- The ERD will accurately reflect the the business rules of the organization.
- Visual illustration of the organizations business rules
- corrections are harder than adding on
1:1
One to one
(1) Relationships merge into one table.
(2) Then one entity becomes an attribute for the other
- Example: The entities is “A single student” to a “single Id card”
- then it would be a a single “STUDENT” with an attribute of an ID card
1:N
One to Many
- all relationships must be simplified to this!
(1) make a primary key in the “One Entity” and make it the Foreign key for the “Many Entity”
N:M
Many to Many
- Needs to be simplified to 1-N
(1) Add an intersection table between the two tables
(2) flip the lines so that the many faces the intersection table
(3) Include the Primary keys from both tables into the intersection table as foreign keys.
(4) make a name for the intersection table
(5) add relevant Attributes(fields) to the table if necessary
(6) make a primary key or auto-number in the intersection table
Entities
- The rectangular shape
- Attributes stored in here (data)
- Correspond to Database tables
Lines
Relationships between one another
Attributes
- These are fields
- Descriptive value associated with an entity
- Corresponds to database fields in a table
Key Attributes
- Correspond to Primary keys
- Uniquely identifies an entity
What concept should be factored into relationships
-Time
Database Normalization
The way Database design is taught in classrooms
- Learning process on how to use relationships
- Number of rules to the relationship model which would simplify relationships
- Avoid common database problems
- Make the data as tightly bound as possible
- Store the minimum amount of data
- First, second, and third normal form