1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.
-
Upload
kathlyn-goodwin -
Category
Documents
-
view
238 -
download
1
Transcript of 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.
![Page 1: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/1.jpg)
1
Chapter 1
Introduction to Accounting Information
Systems
Chapter 5
Database
Management
Systems
![Page 2: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/2.jpg)
Learning Objectives
• Understand techniques to model complex accounting phenomena in E-R diagram
• Develop E-R diagrams that model effective accounting database structures
• Recognize components of relational tables and keys to effective DB design
• Understand use of SQL to create relational tables during implementation
• Manipulate tables to extract data
![Page 3: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/3.jpg)
3
Entities/Attributes
• Entity - object, event, or agent about which data are collected– Objects - Inventory, equipment, cash
– Events - Orders, sales, purchases
– Agents - Customers, employees, vendors
• Attribute - item of data that characterizes and entity or relationship
![Page 4: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/4.jpg)
4
Attribute hierarchy for entity Client
![Page 5: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/5.jpg)
5
Model representations for entities and attributes
![Page 6: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/6.jpg)
6
Relationships
![Page 7: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/7.jpg)
7
Constraints on data model relationships
EMPLOYEE WORKS_COMPLETEDWorks
EMPLOYEE WORKS_COMPLETEDWorks
a. Cardinality constraints
b. Participation constraints
1 N
(1,1) (0,N)
![Page 8: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/8.jpg)
8
Relational Databases
• Relation - collection of data representing multiple occurrences of an object, event, or agent.
• Tuples (rows) - set of data that describe an instance of the entity represented by a relation; like a record in traditional file structure.
• Attributes (columns) - items of data that characterize an object, event, or agent; like fields in traditional file structure.
![Page 9: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/9.jpg)
9
Mapping E-R Diagram to Database
• Create separate relational table for each entity.
• Determine primary key for each relation. Must uniquely identify any row within table.
• Determine attributes for each entity.
• Implement relationships among entities. (Primary key in one table exists as attribute in every table (entity) where relationship specified in E-R.
• Determine attributes, if any, for relationship tables.
![Page 10: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/10.jpg)
10
Hours
Name Contact Phone_noStreet_address City State Zip_codeClient_No.
Client_No.Employee_No. Date
CLIENT
WORK_COMPLETED
Employee_No. Soc_Sec_No Supervisor_No Billing_RatePay_RateName
EMPLOYEE
TRAINING_COMPLETED
Employee_No. Date Hours Train_code
RELEASE_TIME
Employee_No. Date Hours Vacation_Sick
Schema - billing & HR database
![Page 11: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/11.jpg)
11
Hours
Name Contact Phone_noStreet_address City State Zip_codeClient_No.
Client_No.Employee_No. Date
CLIENT
WORK_COMPLETED
Employee_No. Soc_Sec_No Supervisor_No Billing_RatePay_RateName
EMPLOYEE
TRAINING_COMPLETED
Employee_No. Date Hours Train_code
RELEASE_TIME
Employee_No. Date Hours Vacation_Sick
Referential constraints - relational schema
![Page 12: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/12.jpg)
12
![Page 13: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/13.jpg)
13
SQL : Relational DB Query Language
• Used to
– define database systems
– query DB for information
– generate reports from DB
– access DB from within programs
• De facto standard DB language
![Page 14: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/14.jpg)
14
Constructing DBs using SQL
• Assign name to relation
• Assign names to attributes
• Specify data type for attributes
• Specify constraints, when appropriate, on the attributes.
![Page 15: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/15.jpg)
15
Other SQL functions
• Update DB -– add tuple using INSERT– remove tuple using DELETE– change attribute value using UPDATE
• Query DB using SELECT/WHERE
• Generate standard reports from DB– ad hoc (as necessary)– repetitive - might generate subschema view
![Page 16: 1 Chapter 1 Introduction to Accounting Information Systems Chapter 5 Database Management Systems.](https://reader036.fdocuments.in/reader036/viewer/2022062308/56649e665503460f94b60669/html5/thumbnails/16.jpg)
Learning Objectives
• Understand techniques to model complex accounting phenomena in E-R diagram
• Develop E-R diagrams that model effective accounting database structures
• Recognize components of relational tables and keys to effective DB design
• Understand use of SQL to create relational tables during implementation
• Manipulate tables to extract data