1 / 8

Database: Relational Vs Flat File

Database: Relational Vs Flat File. Databases - Structure. Flat file database, contains only one table Relational database, contains more than one table where relationships exist between the data in the table A flat file database often suffers from inefficient repetition of data.

zandra
Download Presentation

Database: Relational Vs Flat File

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. Database: Relational Vs Flat File

  2. Databases - Structure • Flat file database, contains only one table • Relational database, contains more than one table where relationships exist between the data in the table • A flat file database often suffers from inefficient repetition of data. • Normalisation is the process of removing this repetition by crafting relationships between tables.

  3. Databases – Flat File Vs Relational Database + No unnecessary data repetition + Department info easily modified in one operation.

  4. Types of Relationships, connection between data • One-to-one relationship: Eg. Airline’s passenger details: 1 passengers Seats Each passenger has only one seat and each seat can be assigned to only one passenger. A record in one table is connected to only one record in a second table.

  5. Types of Relationships, connection between data • One-to-many relationship: • Eg. customer details & job quotation: The one supplier can provide MANY products, but each product comes from ONE supplier. Also, eg. several workers share single telephone extensions; each extension record is related to several employee’s records.

  6. Types of Relationships, connection between data • many-to-many relationship: • Eg. Student details and subjects tables: students subjects Each student studies many subjects and each subject has many students

  7. Databases – Flat File Vs Relational • School and Student Details • If data was only in one table, with fields of surname, fname, school, address, phone no, fax no, etc. What would be the consequence of a school changing its phone number? • A RDMS with two tables, one with student info and one with school information will avoid this duplication.

  8. Databases – Flat File Vs Relational • Advantages of a relational database: • reduced data redundancy – unnecessary duplication of data • improved data integrity or accuracy of data • able to access the data from separate but related tables or files very quickly and simply • allows easy querying, reporting, etc.

More Related