BÀI GIẢNG TIẾNG ANH RELATIONAL DATABASES

15 17 0
BÀI GIẢNG TIẾNG ANH RELATIONAL DATABASES

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Learning Objectives Describe the basic of database Explain what a relational database is and how it organizes data Perform simple queries using the Microsoft Access database Describe database systems and the future of accounting

Vũ Quốc Thông 2/27/2015 HO CHI MINH CITY OPEN UNIVERSITY ACCOUNTING – AUDITING FACULTY ACCOUNTING INFORMATION SYSTEM RELATIONAL DATABASES Lecturer: Vũ Quốc Thông Chapter Learning Objectives  Describe the basic of database  Explain what a relational database is and how it organizes data  Perform simple queries using the Microsoft Access database  Describe database systems and the future of accounting 5-2 Vũ Quốc Thông 2/27/2015 The Basic of Database 5-3 Data Hierarchy  Field (column)  Attributes about an entity  Record (row / tuple)  Related group of fields  File (table)  Related group of records  Database  Related group of files Picture? 5-4 Vũ Quốc Thông 2/27/2015 In short… ? ? ? File-system v.s Database system 5-6 Vũ Quốc Thông 2/27/2015 Limitations of File-based Systems  Separation and isolation of data  Each program maintains its own set of data  Users of one program may be unaware of potentially useful data held by other programs  Duplication of data  Same data is held by different programs  Wasted space and potentially different values and/or different formats for the same item 5-7 Advantages of Database Systems  Data Integration  Files are logically combined and made accessible to various systems  Data Sharing  With data in one place it is more easily accessed by authorized users  Minimizing Data Redundancy and Data Inconsistency  Eliminates the same data being stored in multiple files, thus reducing inconsistency in multiple versions of the same data  Cross-Functional Analysis  Relationships between data from various organizational departments can be more easily combined 5-8 Vũ Quốc Thông 2/27/2015 Example of Database system 4-9 Relational Database 5-10 Vũ Quốc Thông 2/27/2015 Relational Database  Relational data model represents the conceptual and external level schemas as if data are stored in tables  Table (a File)  Each row (or a tuple) contains data about one instance of an entity  This is equivalent to a record  Each column contains data about one attribute of an entity  This is equivalent to a field 5-11 Row (Record) A Relational Table Each row contains multiple attributes describing an instance of the entity In this case, inventory Column (Field) 5-12 Vũ Quốc Thông 2/27/2015 Attributes / Keys  Primary Key  An attribute or combination of attributes that can be used to uniquely identify a specific row (record) in a table  Foreign Key  An attribute in one table that is a primary key in another table Used to link the two tables 5-13 A Relational Table with KEYS Examine: Chap05_AcctSalesRDB.accdb 5-14 Vũ Quốc Thông 2/27/2015 Design Requirements for Relational Database Every 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 5-15 Queries with MS relational database 5-16 Vũ Quốc Thông 2/27/2015 DBMS Languages  Data Definition Language (DDL)  Builds the data dictionary  Creates the database  Describes the subschema  Specifies record or field security constraints  Data Manipulation Language (DML)  Changes the content in the database  Updates, insertions, and deletions  Structure (Data) Query Language (SQL / DQL)  Enables the retrieval, sorting, and display of data from the database Practice with Chap05_AcctSalesRDB.accdb 5-17 Microsoft Access Query #1 5-18 Vũ Quốc Thông 2/27/2015 Microsoft Access Query #2 5-19 Microsoft Access Query #3 5-20 10 Vũ Quốc Thông 2/27/2015 Microsoft Access Query #4 5-21 Microsoft Access Query #5 5-22 11 Vũ Quốc Thông 2/27/2015 Database systems and the future of Accounting 5-23 Database and the future of Accounting  Ad-hoc queries to provide information for decision-making  Financial information is no longer available only in predefined format  Multiple views of the same underlying phenomenon (e.g managers will no longer be forced to look at data in the ways predefined by accountants)  Capable of integrating financial and operational data (e.g customer satisfaction data could be retrieved from DB giving managers more information for decision making) Relational database increase the use and value of accounting information Accountant must understand database system to use AIS effectively! 5-24 12 Vũ Quốc Thông 2/27/2015 Transform Raw Data into Information 5-25 Transform Raw Data into Information 5-26 13 Vũ Quốc Thông 2/27/2015 Transform Raw Data into Information Table format 5-27 Transform Raw Data into Information Graphic format 5-28 14 Vũ Quốc Thông 2/27/2015 More on reading and practice  Reading on textbook  Chapter (p 107 – 109, p 112 - 125) Doing homework on paper  Discussion questions  Question 4.2, 4.3 and 4.7 (p 128)  Chapter quiz (focus on relevant parts of the lecture)  Quiz of chapter (p 126, 127) 5-29 15 ... combined 5-8 Vũ Quốc Thông 2/27/2015 Example of Database system 4-9 Relational Database 5-10 Vũ Quốc Thông 2/27/2015 Relational Database  Relational data model represents the conceptual and external... table Used to link the two tables 5-13 A Relational Table with KEYS Examine: Chap05_AcctSalesRDB.accdb 5-14 Vũ Quốc Thông 2/27/2015 Design Requirements for Relational Database Every column must... contains data about one attribute of an entity  This is equivalent to a field 5-11 Row (Record) A Relational Table Each row contains multiple attributes describing an instance of the entity In this

Ngày đăng: 22/04/2021, 09:51

Tài liệu cùng người dùng

Tài liệu liên quan