Chapter 1
Chapter 1
Chapter 1
Introduction
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Learning Objectives (1 of 2)
1.1 To understand the importance of databases in Internet Web applications and
smartphone apps
1.5 To describe the components of a Microsoft Access database system and explain the
functions they perform
1.6 To describe the components of an enterprise-class database system and explain the
functions they perform
1.7 To define the term database management system (DBMS) and describe the
functions of a DBMS
1.8 To define the term database and describe what is contained within the database
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Learning Objectives (2 of 2)
1.9 To define the term metadata and provide examples of metadata
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
How Did We Get Here? The Internet World One
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
How Did We Get Here? The Internet World Two
• The Internet
– 1969: Created by DoD as ARPANET
• World Wide Web (also known as the Web or WWW)
– 1993: First Web browser available
– Mid 1990s: Online retail sites (shopping online)
▪ 1995: Amazon
▪ Followed by Best Buy
• Early 2000s: Web 2.0 allowed users to add content to
Web sites
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
How Did We Get Here? Mobile and Cell
Phones
• Mid 1970s: Mobile Phone (Cell Phone)
• Smartphone
– 2007: Apple iPhone
– 2008: Google Android Operating System
• 2020 – Thousands of application programs (apps)
written and in wide use today
• The Internet of Things (IoT) enables devices to be
connected and controlled by smart phones
• All of the above examples depend on databases!
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-1: Searching a Database in a Web
Browser (1 of 2)
The Pearson Higher Education Web Site Home Page and Entering Author Name
(Kroenke) as the Search Keyword
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-1: Searching a Database in a Web
Browser (2 of 2)
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-2: The Internet and Mobile Device
World
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
The Characteristics of Relational
Databases
• The purpose of a database is to help people track things of interest to them.
• Data is stored in tables, which have rows (also known as records) and
columns (also known as fields) like a spreadsheet.
• A database may have multiple tables, where each table stores data about a
different thing.
• Each row in a table stores data about an occurrence or instance of the thing
of interest.
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
A Database Has Data and Relationships
• Relational databases are structured to store data and
have relationships among rows of data
• Each row of a table is identified by a primary key
• A surrogate key is automatically assigned by the
database and is used as a primary key
• A composite key is when more than one column is used
for a primary key (when needed as a primary key)
• A foreign key provides the link between two tables
which provides the link to a relationship
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-3: The STUDENT and CLASS
Tables
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-4: The STUDENT, CLASS, and
GRADE Tables
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-5: The Key Database
Characteristic: Related Tables
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-6: Microsoft Access 2019 View of
Tables and Relationships
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Databases Create Information
• Data = recorded facts and figures
• Information can be defined as:
– Knowledge derived from data
– Data presented in a meaningful context
– Data processed by summing, ordering, averaging,
computing, or other similar operations
• Databases record data, but they do so in such a way that
we can produce information from the data
– The data on STUDENTs, CLASSes, and GRADEs
could produce information about each student’s GPA
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-7: Example Database
Applications
Application Example Users Number of Users Typical Size Remarks
Customer Sales, marketing, or 500 10 million rows Major vendors such as Microsoft
relationship customer service and Oracle PeopleSoft Enterprise
management departments build applications around the
(CRM) database.
Enterprise An entire organization 5,000 10 million+ rows SAP uses a database as a central
resource repository for ERP data.
planning (ERP)
E-commerce Internet users Possibly millions 1 billion+ rows Drugstore.com has a database
site that grows at the rate of 20 million
rows per day!
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Components of a Database System
• Database System consists of four components:
1) Users
2) Database application
3) Database management system (DBMS)
4) Database
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-9: The Components of a
Database System With SQL
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-10: Basic Functions of
Application Programs
Basic Functions of Application Programs
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-11: An Example Data Entry Form
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-12: Example SQL Query Results
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-13 Example Report
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-14: Functions of a DBMS
Functions of a DBMS
Create database
Create tables
Create supporting structures (e.g., Indexes)
Modify (insert, update, or delete) database data
Read database data
Maintain database structures
Enforce rules
Control concurrency
Perform backup and recovery
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
The Database
• A database is a self-describing collection of integrated
tables.
• The tables are called integrated because they store data
about the relationships between rows of data.
• A database is called self-describing because it stores a
description of itself.
• The self-describing data is called metadata, which is data
about data.
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-15: Typical Metadata Tables (1 of 2)
USER_TABLES Table
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-15: Typical Metadata Tables (2 of 2)
USER_COLUMNS Table
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-16: Database Contents
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Microsoft Access
• Microsoft Access is a personal database system
consisting of a DBMS plus an application generator.
• MS Access is a low-end product intended for individual
users and small workgroups.
• MS Access tries to hide much of the underlying database
technology from the user.
– This is a good strategy for beginners, but not for
database professionals.
• Note: Microsoft Access 2019 is discussed in detail in
Appendix A.
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-17: Components of a Microsoft
Access Database System
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-18: Microsoft Access 2019
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-19: Components of an Enterprise-
Class Database System
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-20: Microsoft SQL Server 2019
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-21: Oracle Database XE
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-22: MySQL 8.0
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-23: Three Types of Database
Design
Types of Database Design Process
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-24: Databases Originating From
Existing Data
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-25: Data Import: One or Two
Tables?
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-26: Databases Originating From
New Systems Development
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-27: Databases Originating From
Database Redesign
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-28: Working Domains of Knowledge Workers,
Programmers, and Database Administrators
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-29: Priorities of What You Need
to Know
Topic Chapter Importance to Importance to
Database Knowledge Worker
Administrator and Programmer
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-30: Database History (1 of 2)
Era Years Important Products Remarks
Predatabase Before 1970 File Managers All data were stored in separate files. Data
integration was very difficult. File storage space
was expensive and limited.
Early Database 1970-1980 ADABAS, System2000, First products to provide related tables. CODASYL
Total, IDMS, IMS DBTG and hierarchical data models (D L/One) were
prevalent.
Emergence of 1978-1985 DB2, Oracle Database, Early relational DBMS products had substantial
relational model Ingres inertia to overcome. In time, the advantages
weighed out.
Microcomputer 1982-1992+ dBase- , R:base,
Two Amazing! A database on a micro. All micro DBMS
DBMS products Paradox, Microsoft products were eliminated by Microsoft Access in
Access the early 1990s.
Object-oriented 1985-2000 Oracle ODBMS, Never caught on. Required relational database to
DBMS Gemstone, O2, Versant be converted. Too much work for perceived
benefit.
Data 1998–present Red Brick Warehouse, Created to allow data analysis and the use of
Warehouses Prism Warehouse business intelligence (BI) systems as discussed in
Manager, others built with Chapter 12.
existing relational DBMS
products
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-30: Database History (2 of 2)
Era Years Important Products Remarks
Web 1995-Present IIS, Apache, PHP, ASP.NET, Stateless characteristic of HTTP was a problem at
Databases and Java first. Early applications were simple one-stage
transactions. Later, more complex logic developed.
Open source 1995-Present MySQL, PostgresQL, and Open source DBMS products provide much of the
DBMS other products functionality and features of commercial DBMS
products products at reduced cost.
XML and 1998-Present XML, SOAP, WSDL, UDDI, XML provides tremendous benefits to Web-based
Web services and other standards database applications. Very important today. May
replace relational databases during your career.
See Chapter 11 and Appendix H.
Big Data, the 2009-present Hadoop, Cassandra, Hbase, Web applications such as Facebook and Twitter
NoSQL CouchDB, Arango DB, Mongo use Big Data technologies. The NoSQL movement
movement, DB, JSON, Microsoft Azure, is geared toward processing large datasets using
and cloud Amazon Web Services (AWS), NoSQL data models which replace relational
computing Google Cloud, and other databases with nonrelational data structures such
product as XML and JSON and which may supplant
relational databases during your career. Many
companies now rely on cloud computing services
to host their servers, applications, and data. See
Chapters 12 and 13.
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
The Relational Model
• The dominant database model is the relational database
model which all current major DBMS products are based
on it.
• It was created by IBM engineer E. F. Codd in 1970.
• It was based on mathematics called relational algebra.
• This text examines and explains the relational database
mode.
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Post-Relational Developments (1 of 2)
• Object-Oriented Programming (OOP) emerged, and many
products were developed based on it.
– Designed to easily store data encapsulated in OOP objects.
– It had no real advantage vs. relational models and never
caught on due to business requirements.
– Continues today on product type databases.
• Data warehouses store massive amounts of information.
– Used for online analytical processing (OLAP)
▪ A type of business intelligence (BI) system
• Hypertext Transfer Protocol (HTTP) is used to connect Web
pages over the Internet.
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Post-Relational Developments (2 of 2)
• Application Programming Interface (API) is used by Web
pages in programming languages to connect to a DBMS
• Web Database Application is an application with a web-
based interface that allows shopping using an API
• eXtensible Markup Language (XML) was designed to
overcome problems that occur when HTML is used in
business transactions
• NoSQL (“Not only SQL”) refers to databases not using the
relational model
– Used by databases that require massive amount of data
(Facebook, Twitter)
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-31: The Wedgewood Pacific
Web Page
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-32: ArangoDB Non-Relational D
BMS
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1-33: Microsoft Azure Cloud
Services
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved
Copyright
Copyright © 2021, 2018, 2015 Pearson Education, Inc. All Rights Reserved