1/25
Looks like no tags are added yet.
Database
Collection of related data for various uses in business setting often maintain information about various types of objects, events, people, and places
3 types of data models used: hierarchical model, network model, and relational model
Database Management System (DBMS):
computer program that creates, modifies, and queries the database. Specifically, the DBMS is designed to manage a database’s storage and retrieval of information.
Data Dictionary
Describes the data fields in each database record such as field description, field length, and field type (e.g., alphanumeric, numeric).
Database Administrator:
The person responsible for the design, implementation, repair, and security of a firm’s database.
Hierarchical Data Models
Organizes data into a tree-like structure that allows repeating information using defined parent/child relationships widely uses in mainframe database management systems.
Network Data Models
Flexible model representing objects and their relationships; allows each record to have multiple parent and child records or M:N mapping, also known as many-to-many.
The structure connecting records in a database looks like a mesh.
Relational Data Models
Stores information in the form of related two-dimensional tables. Advantages:
Flexibility & Scalability: as business and informational requirements change, models are able to handle these changes quickly and and easily.
Simplicity: easy to communicate to both database users and database developers.
Reduced Information Redundancy: requires each piece of data to be recorded only in one place, eliminating the need for information to store in multiple places.
Class in a relational database:
a person, place, thing, transaction, or event about which information is stored
Entities & Attributes
Classes grouped into REA: resources, events, and agents in data modeling
Table
represents either a class or a relationship among classes. Need to be properly linked to make a relational database.
Attributes
Columns in a table are called fields and represent attributes or characteristics of a class or relationship.
Records
rows in a table are called records or tuples
Entity Integrity Rule:
primary key of a table must have data values (cannot be null).
Referential Integrity Rule:
data value for a foreign key must either be null or match one of the data values that already exist in the corresponding table.
Basic Table Requirements
Each attribute must have a unique name
Values of a specific attribute must be of the same type (ex. Alpha or numeric)
Each attribute (column) of a record (row) must be single-values -> many to many
All other monkey attributes in a table must describe a characteristic of the class (table) identified by the primary key
Structured Query Language (SQL)
A computer language designed to retrieve data from a relational database based on relational algebra and allows a user to query and update the database.
Enterprise Systems (ESs)
A centralized database that collects data from throughout the firm. Commercialized information system that integrates and automates business processes across a firm’s value chain located within and across organizations.
Cloud Computing:
Using redundant servers in multiple locations to host virtual machines.
Challenges in Implementing Cloud Computing:
Integrating various modules within the enterprise system
Integrating with external systems such as information system of a supplier and/or customer
Integrating with the firm’s own existing legacy systems
Converting data from existing legacy systems to the enterprise system
Getting any big project implemented at a firm.
FROM
clause added to the SELECT statement
indicates the name of table(s) from which to retrieve data
ex.) Given the attributes in the “Sales table”, how do you use a query to find the salesperson for each customer?
SELECT
used to begin a query
statement tells the query which columns (or attributes) of a table should be included in the query
WHERE
• states the criteria that must be met to be shown in the query result
ex.) How do you retrieve all cash receipt information for customer 1003 from the “Cash Receipt” table?
GROUP BY
• is used with aggregate functions on the query results based on one or more columns
ex.) Refer to the Cash Receipt table. What is the total cash receipt amount from each customer?
ORDER BY
• identifies which columns are used to sort the resulting data
• Without it, the order of rows returned by a SQL query will not be defined
ex.) What are the cash receipts for customer 1003, sorted from the
smallest payment to the largest payment?
SELECT DISTINCT
clause selects a column without showing repetitive values
ex.) You can retrieve each customer number once from the Cash Receipt table
BETWEEN
operator can be used to specify the end points of a range
ex.) Finding out cash receipt entries made in September and October