Presentation is loading. Please wait.

Presentation is loading. Please wait.

Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams.

Similar presentations


Presentation on theme: "Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams."— Presentation transcript:

1 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams

2 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 2 Aims Learn about Entity Relationship Diagrams (ERD) and what they are used for. Understand the decomposed process Create an ERD diagram

3 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 3 Entity Relationship Diagrams ERD –An ERD represents the entities and the relationships that exists between them. –An ERD diagram is created to establish what tables within a database are required and what foreign keys are needed

4 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 4 Entity Relationship Diagrams ERD – Entities –Real world things that are part of the system under investigation. –Examples include Products, Customers, Orders.

5 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 5 Entity Relationship Diagrams ERD – Relationship –Relationships illustrate how two entities share information in the database structure. –Relationships exists between each of the entities examples are shown below: 1M MM 11

6 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 6 Entity Relationship Diagrams ProductsEmployeeOrder MM M1 Makesinvolves A many to many relationship as shown above is not allowed because it will create duplicate data, and repeating groups. For more information use the link below: http://www.cms.livjm.ac.uk/johnwillitts/RelDBDes/13Norm/SuppRepeatingGrp/rep eating_groups.htm

7 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 7 Entity Relationship Diagrams OrderIDEmployeeIDProductIDOrderDateDeliverbyComments 1100A129/03/200929/04/2009 Ring the bell 1100A229/03/200929/04/2009 1100A329/03/200929/04/2009 Order table This is the result of a many to many relationship, as you can see there is repeating groups of data (A1, A2,A3), the OrderID primary key has lost it’s uniqueness and there is loads of redundancy i.e. the order date 29/03/2009 is stored more than once.

8 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 8 Entity Relationship Diagrams Products EmployeeOrder M1 Makes To resolve this many to many relationship we have to add another table which is a decomposed table of order and products, called Order Products. Order Products M1 Consists M Included 1

9 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 9 Entity Relationship Diagrams OrderIDProductID 1A1 1A2 1A3 Order Products By using the decomposed table it reduced redundancy and removed repeating groups from the Order table, this results in a better functioning database.OrderIDEmployeeIDOrderDateDeliverbyComments110029/03/200929/04/2009 Ring the bell Order table

10 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 10 Entity Relationship Diagrams ERD – Attribute –An attribute is a specification that defines a property of an entity. An attribute of an entity usually consists of a name and a value for example: OrderIDEmployeeIDOrderDateDeliverbyComments 110029/03/200929/04/2009 Ring the bell These are all attributes, they have a name and a value.

11 Btec National - IT SYSTEMS ANALYSIS AND DESIGN 11 Conclusion Learnt about Entity Relationship Diagrams (ERD) and what they are used for. Discussed the decomposed process Created an ERD diagram


Download ppt "Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams."

Similar presentations


Ads by Google