1 / 21

DATA MODELLING TOOLS FOR ORGANISING DATABASES

DATA MODELLING TOOLS FOR ORGANISING DATABASES. For a database to be organised and logical, it must be well-designed and set out. In such cases, the databases are able to avoid problems like data redundancy as well as security. They too can verify the integrity and validity of data.

jabari
Download Presentation

DATA MODELLING TOOLS FOR ORGANISING DATABASES

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. DATA MODELLING TOOLS FOR ORGANISING DATABASES

  2. For a database to be organised and logical, it must be well-designed and set out. In such cases, the databases are able to avoid problems like data redundancy as well as security. • They too can verify the integrity and validity of data. • Data modelling aims to create a description of data requirements and its participants. • This can be done using data dictionaries, schematic diagrams and normalisation.

  3. DATA DICTIONARY

  4. What are data dictionaries? • Metadata is data that describes data. This is what data dictionaries hold. • They are responsible for storing each field name / attribute and providing information about this field. • They can help participants or users of the database to understand better, if the content of a field is ambiguous. • They can also ensure consistency in regards to data across different tables.

  5. What information can a data dictionary hold? • Exact definition of the data elements • The allocations of space in the database • The reliability constraints

  6. The following was based on: Wilson, C. (2002) Information Processing and Technology. Cambridge University Press: UK p . 44

  7. ACTIVITY 1 Answer the following, based on what you remember from the previous slides: • Data dictionaries hold metadata; which is _________ that __________ data. • Why are data dictionaries a great help to users unfamiliar with the content of the database? • A data dictionary can ensure _______________ across different tables. • What are 4 headings used in a data dictionary?

  8. NORMALISATION

  9. What is Normalisation? • Normalisation is a process carried out in relational databases with the purpose of eliminating redundancy within the database. • The set of rules that aim to reduce this redundancy are known as Normal Forms (NF).

  10. What do normal forms do? • Normal forms divide the fields in the database into two or more tables and defines the relationships between the tables. This enables the overall topic or idea for each table to be unique. • Therefore, it can be said that “each table is only made up of entities from a single entity class.” * *Wilson, C. (2002) Information Processing and Technology: The HSC Course. Cambridge University Press: UK

  11. 2 steps of normal forms: • Initial Normal Form (INF): This separates the fields into separate tables and then each table is given a primary key. It gives more tables than would have normally been included. Its advantage is that data in one table can be edited without affecting the content of another table.

  12. (2) Domain Key Normal Form (DKNF): This is what establishes the links between the tables as to create relationships. A field must be established which can be common to all of the tables and this will act as the relationship.

  13. ACTIVITY 2 • What does normalisation aim to eliminate? • NF is an acronym for what? And what does it do? • INF is an acronym for which stage of the normalisation process? • What is the advantage of INF? • DKNF stands for___________? • Why is the above step vital?

  14. Application of the steps: Example: A school database

  15. (1) INF:The data regarding teachers and students can be separated; therefore, there is one table relating to student data and another for the teaching staff. This allows student data to be changed without affecting teachers’ data in any way.

  16. CLASS (2) DKNF:So long as INF has been correctly conducted, then there should not be any similarities between the teacher/student tables. But to establish a link, a common ground must be found – this being a field. A field such as Name is notcommon between the tables due to the variety of names and unsuitability for relationships in a school database. However, Class would be a suitable and relevant field to link the two tables.

  17. What does normalisation allow? • No problems arise in modification of the database • Redundant data is eliminated • Data can be separately edited and changed without changing another table • Database uses a reduced amount of space • Logical organisation of data

  18. SCHEMATIC DIAGRAMS

  19. What is a schematic diagram? • This is a visual representation of the model of the databases’ s design, used to show the relationship between entities (Remember – an entity is like a category of data). • A type of schematic diagram is the ERD (entity relationship diagram). This shows the entity types, relationships and the characteristics of the particular relationship between the entities. • These relationships are marked by lines that connect the entities.

  20. Using the pen tool, draw in the relationships between the entities on the right. STUDENTS TEACHERS Student ID Surname FirstName Gender Year ClassCode Teacher ID Surname FirstName Department ClassCode CLASSES Class ID Subject ClassCode Year Day Period ACTIVITY 3 • What is the relationship between student and teacher? • What is the relationship between student and classes? • What is the relationship between teacher and classes? • *For each, what type of relationship is it? (One-to-one; one-to-many)

  21. ANSWERS To view answers, right click on word and “open hyperlink”

More Related