1 / 7

Entity Relationship

Entity Relationship. Diagrams and symbols. What is an Entity Relationship?.

kuper
Download Presentation

Entity Relationship

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. Entity Relationship Diagrams and symbols

  2. What is an Entity Relationship? • An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database. ER diagrams often use symbols to represent three different types of information. Boxes are commonly used to represent entities. Diamonds are normally used to represent relationships and ovals are used to represent attributes.

  3. Symbols used in E.R.D Boxes are commonly used to represent entities. Diamonds are normally used to represent relationships Ovals are used to represent attributes.

  4. One –one Relationship • One-to-one relationships occur when there is exactly one record in the first table that corresponds to exactly one record in the related table. In rare cases a one-to-one relationship is modelled using two database tables. Such a setup is sometimes used to overcome the limitations of a database system or to gain performance. This way of modelling a one-to-one relationship should be avoided.

  5. One-Many Relationship • One-to-many relationships occur when each record in TableA may have many linked records in TableB but each record in TableB may have only one corresponding record in TableA. • In a one to many relationship each row in the related to table can be related to many rows in the relating table. This allowed frequently used information to be saved only once in a table and referenced many times in all other tables.

  6. Many-many Relationship • Many-to-many relationships occur when each record in TableA may have many linked records in TableB and vice-versa.

  7. DONE BY: • DERRICKA SEARCHWELL • 6BH • YAY MEEEEE!!!!!!!!!!!!!!

More Related