1 / 10

Databases

Databases. Part 2. Overview. 4 easy pieces When a database is needed Complex data: normalizing Referential Integrity Queries: SQL. 4 easy pieces. Tables Queries Forms Reports. When a database is needed. Multiple entities Redundancy and Errors Anomalies: Delete, Update, Insert.

mirari
Download Presentation

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. Databases Part 2

  2. Overview • 4 easy pieces • When a database is needed • Complex data: normalizing • Referential Integrity • Queries: SQL

  3. 4 easy pieces • Tables • Queries • Forms • Reports

  4. When a database is needed • Multiple entities • Redundancy and Errors • Anomalies: Delete, Update, Insert

  5. Normalization • 1st Normal Form • No duplicate rows • Primary Key • Row and Column order doesn’t matter • A field has 1 piece of data • Separate First and Last name • No repeating groups

  6. No Repeating Groups Good Bad

  7. More Normalization • 2nd Normal Form • 3rd Normal Form • Boyce-Codd Normal Form • 4th Normal Form • 5th Normal Form • Domain/key Normal Form • 6th Normal Form

  8. Referential Integrity • If delete Mary, orphaned phone #? • Cascade Deletes • Cascade Updates Friends Phones

  9. SQL Design View • What is an Access Query? • Try it SELECT Friends.Last, Friends.First, Phones.Phone FROM Friends INNER JOIN Phones ON Friends.ID = Phones.ID ORDER BY Friends.Last, Friends.First, Phones.Phone; Datasheet View SQL View

  10. The End

More Related