1 / 22

Chapter 16 (p481 – 485, 496-501)

Chapter 16 (p481 – 485, 496-501). Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : woodall@mc.edu). Database Defined. database – an organized collection of related information, used primarily to maintain and look up that information.

kairos
Télécharger la présentation

Chapter 16 (p481 – 485, 496-501)

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. Chapter 16 (p481 – 485, 496-501) Fluency with Information Technology 4th edition by Lawrence Snyder (slides by Deborah Woodall : woodall@mc.edu)

  2. Database Defined database– an organized collection of related information, used primarily to maintain and look up that information. relational database -the most common type of database Data is organized into tables that have rows and columns. Thus, a database is a collection of one or more tables

  3. Part of a Database Table called Nations

  4. 13 Rows, Tuples, Records

  5. 8 Columns, Fields, Attributes

  6. Properties of Database Tables • A relational database table can be empty. • Two tables with the same rows, but in a different order, are the same table. • Two tables with the same columns, but in a different order, are the same table. • Thus the information in a database can be ordered (i.e. sorted) in any order that you need.

  7. Properties of Database Tables: An Empty table

  8. Properties of Database Tables:Two views of the same table

  9. Properties of Database Tables • Every row of a database table must be unique in some way. • The field (i.e. column or attribute) for which all rows of the data base table are unique is the primary key of the table.

  10. A Database Table called Nations

  11. Properties of Database Tables • Field names (i.e. column names, attribute names) should be descriptive. • Attribute data (i.e. column data, field data) is atomic • Or Indivisible • The value of a field (i.e. column, attribute) can not be subdivided into several smaller parts • The date attribute is a classic exception

  12. A Database Table called Nations

  13. Database Scheme • Also called database schema • It is the collection of all table definitions for a database. • Each table definition includes • Table name • Fields with data types • Primary key indicated

  14. A Table Definition for Nations Table • Name: Nations • Fields: (with data type and primary key indicated) Name (Text) Domain (Text) Capital (Text) Latitude (Text) N_S (Number) Longitude (Text) E_W (Number) Interest (Text)

  15. Physical Database Thephysical database • It is made up of all of the physical tables. • Major rule: No Redundancy!

  16. Nations is a Physical Table

  17. Logical Database and Queries • It is made up of all of the logical tables. • A logical table is created as the result of a query. • A query is an operation on one or more database tables that pulls info from the database. • For complex queries, go beyond "drag and drop" with Structured Query Language (SQL)

  18. Query 1 us a Logical Table Created by a Query on the Nations Table

  19. Creating Queries(i.e. logical tables) Steps to create each query… • Select the table or tables with the needed data • Select the fields you wish to see • Set the criteria for which rows you want • Sort as prescribed

  20. Entity Relationship diagrams • Also called ER diagrams • Show the relationships between the physical tables in the physical database.

  21. ER Diagram

  22. ER Diagram: ∞ to 1

More Related