AFM241 Chapter Notes - Chapter 5: Database, Database Theory, Data Warehouse
Chapter 5- Introduction to Database Theory
5.1 Introduction
• BlueBikes is a wholesale company that buys bikes, parts and accessories, as well as various kits for
bikers in large volume from manufacturers.
• Sells to retail stores
• On the customer side (Order to cash process), they have
• Generate and record sales orders
• Ship content of orders to customers
• Send invoice for products to customers and record amount to be received
• On the supplier side (Purchase to Pay process)
• Prepare and record P.O
• Receive goods and record the receipt of inventory
• Receive invoice from vendor and record amount to be paid
• Submit and record payment
• For the captured data to be able to evaluate the firm`s ability to be efficient and effective at the
processes. The minimum data to be collected should capture the following elements:
• All individuals or organizations involved in each activity. E.g. name of salesperson
• All assets that are exchanged as a result of this activity
• All locations in which the activity took place; all locations where exchanged assets were
before and after the event; and the location of all parties related to the activity during the
activity and for future correspondence
• All the time periods related to the completion of the activity
• In the case of BlueBikes the order to cash process
• Salesperson (Alpha) → generate a sales order from a customer (Rims) for certain products (5
road bikes- RC model) at a certain price ($1100 per bike)→ look at the availability of RC
odel i fi’s aehouse → establish a delivery date or determine whether the product
should go on back order
• In the warehouse, Beta will receive the packing list and shipping label → pick bikes →
package them → attach shipping label → send to customer → purchase order will be
prepared if the sale brings the inventory below certain level
• These sales data will be helpful for management to perform a sales analysis by salesperson, by
territory, by product, by customer, and time period
• A database management system (DBMS) is a program for capturing, accessing, and managing data
• Provide the information for BlueBikes for coordinating the activities of its functional areas
ad plaig fo the opa’s futue
• Data are facts about people, places, things, or events
• Information is what you get when you process the data into something useful
5.2 Relational Databases
• Two of the most common databases are production and decision support system (DSS)databases
• A production database is used mainly to track data about frequent and complex transactions
• Each transaction involves one or multiple actions related to reading from or writing to a database
find more resources at oneclass.com
find more resources at oneclass.com
• E.g. when BlueBikes purchases a bike from one of its suppliers on credit, the AP will have to
be updated to reflect the amount outstanding and inventory account too
• A DSS is more complicated, offers more extensive information generation and processing, as well as
management capabilities
• Focuses on the information requirements instead of the transaction requirements
characteristic of production databases
• The most popular DSS databases are called datawarehouses- primarily storage facilities
dedicated to processing existing data taken from production databases into useful
information
• updated infrequently because of lower volume of transactions to record
• data about the data is referred to as metadata which is kept in a data dictionary – a
compilation of all the components of the data, their names, their characteristics, and also
facts about the nature of relations between the different sets of data
• the program that manages all this data and metadata is called a database management
system (DBMS). Performs the following functions:
• manages metadata in a data dictionary
• produces complex data storage functions, including enforcing data input
requirements
• creates and enforces a secure environment for the storage of data
• manages the complex needs of a multi-user environment
• enforces data integrity at all levels of the database
• four different database models
• 1. Hierarchical
• 2. Network
• 3. Relational
• 4. Object-oriented
• The most prevalent is the relational database, implemented in the form of a relational Database
management system (RDBMS)
• E.g. Microsoft access
• Data is conceptually represented in two-dimensional tables (files, relations) consisting of
rows (records) and columns (attributes, fields)
• Uses attributes to associate data from different tables
• Allows user to link sets of data in a tabular format, creating relations that are easy to
visualize
find more resources at oneclass.com
find more resources at oneclass.com
5.3 Database Theory & Terminology
5.3.1 Terminology
• Databases generally store data about entities and their attributes.
• An entity (also referred as table or file or relation) is something that users want to track
• Entity can be a person, a concept, or event
• It can be tangible or intangible
• Anything a company wants to record is an entity
• Typically, they are written as tCustomer, tOrder, and tProduct.
• Each of these entities has several characteristics or properties known as attributes (also referred to
as a fields or columns)
• If entity is a noun then attributes are adjectives describing the noun
• E.g. the entity customer in the BlueBikes database has the following attributes: CID (customer
identification number), company, contract, address, city, province, postal code, phone, salesperson
• An entity occurrence (also referred as record or row) refers to an individual instance of an entity
find more resources at oneclass.com
find more resources at oneclass.com
Document Summary
The minimum data to be collected should capture the following elements: all individuals or organizations involved in each activity. Information is what you get when you process the data into something useful: data are facts about people, places, things, or events. Object-oriented: the most prevalent is the relational database, implemented in the form of a relational database management system (rdbms, e. g. 5. 3. 1 terminology: databases generally store data about entities and their attributes, an entity (also referred as table or file or relation) is something that users want to track. A set of data describing a specific customer or product. But there will be unnecessary null values for customers who only have one number. A (eid) functionally determines b (name, date of birth, date of joining, etc. ) if and only if there is a one association from a to b. depicted as a b. If a functionally determines b (a b), and b c, then a c.