0% found this document useful (0 votes)
3 views

CH 4 Relational databas..

ch4

Uploaded by

hamdan07222
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

CH 4 Relational databas..

ch4

Uploaded by

hamdan07222
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Accounting Information Systems

Fifteenth Edition, Global Edition

Chapter 4
Relational Databases

• Copyright © 2021 Pearson Education Ltd.


File-oriented approach vs database

Copyright © 2021 Pearson Education Ltd.


What Is a Database?
• A set of interrelated data, efficiently and centrally
coordinated data
• Includes information for a related group of files
• A file is a related group of records
• A record is a related group of fields
• A field is a specific attribute of interest for the entity
(record)

Copyright © 2021 Pearson Education Ltd.


Basic Elements of Data Hierarchy

Copyright © 2021 Pearson Education Ltd.


Advantages of Databases
• Data is integrated
• Data sharing
• Minimize data redundancy and inconsistencies
• Data is easily accessed for reporting and cross-functional
analysis
Database Design
• To design a database, you need to have a conceptual view
of the entire database. The conceptual view illustrates the
different files and relationships between the files.
• The data dictionary is a “blueprint” of the structure of the
database and includes data elements, field types,
programs that use the data element, outputs, and so on.

Copyright © 2021 Pearson Education Ltd.


Type of Attributes:

• A primary key: is the database attribute, or combination of


attributes, that uniquely identifies a specific row in a table.

• A foreign key: is an attribute in one table that is also a


primary key in another table and is used to link the two
tables.

Copyright © 2021 Pearson Education Ltd.


Relational Data Tables (2 of 2)

Copyright © 2021 Pearson Education Ltd.


DBMS Languages

• Data Definition Language (DDL):


– Builds the data dictionary, creates the database, describes
logical views, and specifies record or field security
constraints.
• Data Manipulation Language (DML):
– Changes database content, including data element
creations, updates, insertions, and deletions.
• Data Query Language (DQL):
– Contains powerful, easy-to-use commands that enable
users to retrieve, sort, order, and display data.

Copyright © 2021 Pearson Education Ltd.


• Most DBMS packages contain data definition DDL, data manipulation
DML, and data query languages DQL. For each of the following,
indicate which language would be used.
a. A database administrator defines the logical structure of the database
The DDL - this is the language used to define the database.
b. The controller requests a cost accounting report containing a list of
all employees being paid for more than 10 hours overtime in a given
week.
The DQL - this is an example of a query.
c. A programmer develops a program to update the fixed-assets records
stored in the database.
The DML - this is the language used to actually process transaction data and
update the database.

Copyright © 2021 Pearson Education Ltd.


d. The human resources manager requests a report noting all employees
who are retiring within five years.
The DQL - another example of a task that involves querying the database
e. A user develops a program to print out all purchases made during the
past two weeks.
The DQL – this listing can be produced by a query.
f. An additional field is added to the fixed-asset records to record the
estimated salvage value of each asset.
The DDL and the DML - the former to add the field, the latter to enter data in
it.

Copyright © 2021 Pearson Education Ltd.


Key Terms (1 of 2)
• Database • External-level schema
• Database management • Subschema
system (D B M S) • Conceptual-level schema
• Database system • Internal-level schema
• Database administrator (D B A) • Access rights
• Online transaction processing • Data dictionary
database (O LT P) • Data definition language (DDL)
• Data warehouse • Structured query language (SQL)
• Business intelligence • Data manipulation language (DML)
• Online analytical processing • Data query language (DQL)
(O LAP) • Report writer
• Data mining • Data model
• Record layout • Relational data model
• Logical view • Tuple
• Physical view
• Schema

Copyright © 2021 Pearson Education Ltd.


Key Terms (2 of 2)
• Primary key
• Foreign key
• Update anomaly
• Insert anomaly
• Delete anomaly
• Relational database
• Entity integrity rule
• Referential integrity rule
• Normalization
• Semantic data modeling

Copyright © 2021 Pearson Education Ltd.

You might also like