4 Relational Databases 课件(共19张PPT)- 《会计信息系统英文版》同步教学(人民大学版)

资源下载
  1. 二一教育资源

4 Relational Databases 课件(共19张PPT)- 《会计信息系统英文版》同步教学(人民大学版)

资源简介

(共19张PPT)
Chapter 4Relational Databases4-Learning ObjectivesExplain the importance and advantages of databases.Describe the difference between database systems and file-based legacy systems.Explain the difference between logical and physical views of a database.Explain fundamental concepts of database systems such as DBMS, schemas, the data dictionary, and DBMS languages.Describe what a relational database is and how it organizes data.Create a set of well-structured tables to store data in a relational database.Perform simple queries using the Microsoft Access database.4-Data HierarchyFieldAttributes about an entityRecordRelated group of fieldsFileRelated group of recordsDatabaseRelated group of files4-Advantages of Database SystemsData IntegrationFiles are logically combined and made accessible to various systems.Data SharingWith data in one place it is more easily accessed by authorized users.Minimizing Data Redundancy and Data InconsistencyEliminates the same data being stored in multiple files, thus reducing inconsistency in multiple versions of the same data.Data IndependenceData is separate from the programs that access it. Changes can be made to the data without necessitating a change in the programs and vice versa.Cross-Functional AnalysisRelationships between data from various organizational departments can be more easily combined.4-Database TerminologyDatabase Management System (DBMS)Interface between software applications and the data in files.Database Administrator (DBA)Person responsible for maintaining the databaseData DictionaryInformation about the structure of the databaseField names, descriptions, uses4-Logical vs. PhysicalPhysical ViewDepends on explicitly knowing:How is the data actually arranged in a fileWhere is the data stored on the computerLogical ViewA Schema separates storage of data from use of the dataUnnecessary to explicitly know how and where data is stored.4-SchemasDescribe the logical structure of a databaseConceptual LevelOrganization wide view of the dataExternal LevelIndividual users view of the dataEach view is a subschemaInternal LevelDescribes how data are stored and accessedDescription of: records, definitions, addresses, and indexes4-DBMS LanguagesData Definition Language (DDL)Builds the data dictionaryCreates the databaseDescribes the subschemaSpecifies record or field security constraintsData Manipulation Language (DML)Changes the content in the databaseUpdates, insertions, and deletionsData Query Language (DQL)Enables the retrieval, sorting, and display of data from the database4-Relational DatabaseRelational data model represents the conceptual and external level schemas as if data are stored in tables.TableEach row, a tuple, contains data about one instance of an entity.This is equivalent to a recordEach column contains data about one attribute of an entity.This is equivalent to a field4-A Relational Table4-Row (Record)Column (Field)Each row contains multiple attributes describing an instance of the entity. In this case, inventory.Same type of dataAttributesPrimary KeyAn attribute or combination of attributes that can be used to uniquely identify a specific row (record) in a table.Foreign KeyAn attribute in one table that is a primary key in another table.Used to link the two tables4-Database Design ErrorsIf database is not designed properly data errors can occur.Update AnomalyChanges to existing data are not correctly recorded.Due to multiple records with the same data attributesInsert AnomalyUnable to add a record to the database.Delete AnomalyRemoving a record also removes unintended data from the database.4-Design Requirements for Relational DatabaseEvery column must be single valued.Primary keys must contain data (not null).Foreign keys must contain the same data as the primary key in another table.All other attributes must identify a characteristic of the table identified by the primary key.4-Normalizing Relational DatabasesInitially, one table is used for all the data in a database.Following rules, the table is decomposed into multiple tables related by:Primary key–foreign key integrationDecomposed set of tables are in third normal form (3NF).4-Microsoft Access Query #14-Microsoft Access Query #24-Microsoft Access Query #34-Microsoft Access Query #44-Microsoft Access Query #54-

展开更多......

收起↑

资源预览