1 / 16

Organizing Data

Organizing Data. Chapter 3. Revision: page 105 -118. Back ground: File System. File Contents: Customer- and Agent Files. File System. Points to take notice of:. Duplication of data leads to anomalies :

fiona-cash
Download Presentation

Organizing Data

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. Organizing Data Chapter 3 Revision: page 105 -118

  2. Back ground: File System

  3. File Contents:Customer- and Agent Files

  4. File System

  5. Points to take notice of: • Duplication of data leads to anomalies: • Changing information in the Customer file and NOT in the Agent file (Islands of data) leads to inconsistency that impact on the integrity of the data. • Programmers interact DIRECTLY with the file, according to the STRUCTURE of the file. • If the file organization changes, so must the software!

  6. How do a DB solve these problems: File: DB: Introduces the DBMS: Data is stored in ONLY one File The DBMS introduces data independence: The programmer do NOT need to know about data structures. The DBMS interact with the files • Duplication of data • Changes to software programs

  7. DBMS: See page 113, Fig 3.9

  8. Creation of a DB: • Create the LOGICAL view • Know the tables/entities, • Identify the attributes/field names, • Identify a PK for EACH table • Identify the relationship between entities.

  9. Creation of a DB: • Logical view:

  10. Implementation: • Create DB, using datadefinition language • Create Tables: • Attributes with Data TYPES: • Numerical, Text, Currency, Date, Logical

  11. Populate: • Insert the values • Draw the Relationship • Answer queries: • Selection • Project • Join • QBE versus SQL

  12. Relationships: • 1 : 1 • 1 : M • M : N

  13. Exam: • Scope: • Section A: Build a database, and answer queries 40 marks • Will be marked in the Lab • Section B: Multiple Choice Questions • Chapters 1, 2, 3: Between 60 and 80 questions

More Related