1 / 12

CONCEPTUAL SCHEMA DESIGN PROCESS

CONCEPTUAL SCHEMA DESIGN PROCESS. Yr 12 IPT. Information Processing and Technology, 2001. Last Lesson. Value and Cardinality constraints limit the value an entity type can have. Frequency constraints limit the number of times a role can be played by its associated entities.

joyceburke
Download Presentation

CONCEPTUAL SCHEMA DESIGN PROCESS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CONCEPTUAL SCHEMA DESIGN PROCESS Yr 12 IPT Information Processing and Technology, 2001

  2. Last Lesson • Value and Cardinality constraints limit the value an entity type can have. • Frequency constraints limit the number of times a role can be played by its associated entities. • Roles are either mandatory or optional.

  3. Design Cycle 1. State Elementary Facts Draw Conceptual Schema Diagram 2. 3. Entity types that should be combined and derivation. 4. Add Uniqueness Constraints 5. Add other constraints: value, cardinality, frequency and mandatory. 6.

  4. Step 4. Add Uniqueness Constraints • Uniqueness constraints are specified in a conceptual schema to avoid data redundancy. • The relations are: • one to one • one to many • many to one • many to many

  5. One to one • Does each friend have only one phone number? • Does each phone number have only one friend? Yes Yes Friend (name) Phone (number) has One friend has one phone number

  6. One to many • Does each party have only one minister? • Does each minister have only one party? No Yes Party (name) Minister (name) has One Party has many ministers

  7. Many to one • Does each student have only one house? • Does each house have only one student? Yes No Student (name) House (name) has Many students have one house

  8. Many to many • Does each teacher have only one subject? • Does each subject have only one teacher? No No Teacher (name) Subject (name) has Many teachers have many subjects.

  9. Ternary relationships(check this is always true) Student (name) studies Subject (name) received Grade (letter)

  10. Design Cycle 1. State Elementary Facts 2. Draw Conceptual Schema Diagram 3. Entity types that should be combined and derivation. 4. Add Uniqueness Constraints. 5. Add other constraints: value, cardinality, frequency and mandatory. 6. Perform Population and Final Checks.

  11. 6. Perform Population and Final Checks. • The final Step of the CS Design Phase. • This step must check that the schema is: • internally consistent (no contradicting constraints) • externally consistent (population check) • free of redundancy (undetected derivations) • complete (fulfils original requirements and represents the UoD)

  12. The End.

More Related