SlideShare a Scribd company logo
1 of 59
Chapter 14:

Databases and
Database
Management Systems
Learning Objectives
1. Explain what a database is, including common database
terminology, and list some of the advantages and
disadvantages of using databases.
2. Discuss some basic concepts and characteristics of data, such
as data hierarchy, entity relationships, and data definition.
3. Describe the importance of data integrity, security, and
privacy, and how they affect database design.

Understanding Computers: Today and Tomorrow, 14th Edition

2
2
Learning Objectives
4. Identify some basic database classifications and discuss their
differences.
5. List the most common database models and discuss how
they are used today.
6. Understand how a relational database is
designed, created, used, and maintained.
7. Describe some ways databases are used on the Web.

Understanding Computers: Today and Tomorrow, 14th Edition

3
Overview
• This chapter covers:
– What a database is, the individuals who use them, and
how databases evolved
– Important database concepts and vocabulary
– Database classifications and models
– How to create and use a relational database
– How databases are used on the Web

Understanding Computers: Today and Tomorrow, 14th Edition

4
4
What is a Database?
• Database
– A collection of related data stored in a manner so it can be
retrieved as needed
• Database Management System (DBMS)
– Used to create, maintain, and access databases
• A database typically consists of:
– Tables
• Collection of related records
– Fields (columns)
• Single category of data to be stored in a database
(name, telephone number, etc.)
Understanding Computers: Today and Tomorrow, 14th Edition

5
What is a Database?
– Records (rows)
• Collection of related fields in a database (all the fields
for one customer, for example)

• Relational Database
– Data from several tables is tied together (related) using a
field that the tables have in common

Understanding Computers: Today and Tomorrow, 14th Edition

6
What is a Database?
• A Simple Relational Database Example

Understanding Computers: Today and Tomorrow, 14th Edition

7
What is a Database?
– Primary Key
• Specific field that uniquely identifies the records in a
table
• Used in a relational database to relate tables together

Understanding Computers: Today and Tomorrow, 14th Edition

8
What is a Database?
– PC DBMSs
• Microsoft Access, Corel Paradox
– More comprehensive enterprise databases
• Oracle Database, IBM DB2, Microsoft SQL Server
• Individuals Involved with a Database Management System
– Database Designers
• Design the database
– Database Developers
• Create the database
– Database Programmers
• Write the programs needed to access the database or
tie the database to other programs
Understanding Computers: Today and Tomorrow, 14th Edition

9
What is a Database?
– Database Administrators
• Responsible for managing the databases within an
organization
– Users
• Individuals who enter data, update data, and retrieve
information out of the database

Understanding Computers: Today and Tomorrow, 14th Edition

10
What is a Database?
• The Evolution of Databases

Understanding Computers: Today and Tomorrow, 14th Edition

11
What is a Database?
• Advantages and Disadvantages of the DBMS Approach
– Advantages
• Low level of redundancy

– Faster response time
– Lower storage requirements
– Easier to secure

– Increased data accuracy
– Disadvantages
• Increased vulnerability (backup is essential)

Understanding Computers: Today and Tomorrow, 14th Edition

12
Data Concepts and
Characteristics
• Data Hierarchy
– Fields/columns
• Hold single pieces of data
– Records/rows
• Groups of related fields
– Tables
• Collection of related records
– Database
• Contains a group of related tables

Understanding Computers: Today and Tomorrow, 14th Edition

13
Data Concepts and
Characteristics
• Entities and Entity Relationships
– Entity
• A person, object, or event of importance to the
organization
• Entities that the organization wants to store data about
typically becomes a database table
– Attributes
• Characteristics of an entity
• Typically become fields in the entity’s database table
– Relationship
• An association between two or more entities
Understanding Computers: Today and Tomorrow, 14th Edition

14
Data Concepts and
Characteristics
– One to One (1:1) Entity Relationships
• One entity is related to only one other entity of a
particular type
– Each store has a single manager
• Not a common type of relationship
– One to Many (O:M) Entity Relationship
• Most common type of relationship
• One entity can be related to more than one other entity
– A supplier supplies more than one product to a
company
Understanding Computers: Today and Tomorrow, 14th Edition

15
Data Concepts and
Characteristics
– Many to Many (M:M) Entity Relationships
• One entity can be related to more than one other
entity, and those entities can be related to multiple
entities of the same type as the original entity
– An order can contain multiple products and a
product can appear on multiple orders
• Data Definition
– The process of describing the properties of data to be
included in a database table

Understanding Computers: Today and Tomorrow, 14th Edition

16
Data Concepts and
Characteristics
– During data definition, each field is assigned:
• Name (must be unique within the table)
• Data type (such as Text, Number, Currency, Date/Time)
• Description (optional description of the field)
• Properties (field size, format of the field, allowable
range, if field is required, etc.)
– Finished specifications for a table become the table
structure

Understanding Computers: Today and Tomorrow, 14th Edition

17
Data Concepts and
Characteristics

Understanding Computers: Today and Tomorrow, 14th Edition

18
Data Concepts and
Characteristics
• The Data Dictionary
– Contains all data definitions in a database
• Table structures
– Names, types, and properties of each field
• Security information (passwords, etc.)
• Relationships between the tables in the database
• Current information about each table, such as the
current number of records
• Does not contain any of the data in the tables
• Does contain metadata, which is information about the
database tables
• Ensures that data being entered into the database does
not violate any specified criteria
Understanding Computers: Today and Tomorrow, 14th Edition

19
Data Concepts and
Characteristics
• Data Integrity, Security, and Privacy
– Data Integrity
• Accuracy of Data
– Quality of data entered determines the quality of
generated information
• Data Validation
– Process of ensuring that data entered into the
database is valid
– Record validation rules
» Checks all fields before changes to a record are
saved
– Can be enforced on a per transaction basis so the
entire transaction will fail if one part is invalid
Understanding Computers: Today and Tomorrow, 14th Edition

20
Data Concepts and
Characteristics
• Database Locking
– Prevents two individuals from changing the same
data at the same time

Understanding Computers: Today and Tomorrow, 14th Edition

21
Data Concepts and
Characteristics
– Data Security
• Protects data against destruction and misuse
• Protects against unauthorized access to and
unauthorized use of a database
• Database activity monitoring programs can be used to
detect possible intrusions
• Should include strict backup and disaster-recovery
procedures (disaster-recovery plan)
– Protects against data loss

Understanding Computers: Today and Tomorrow, 14th Edition

22
Data Concepts and
Characteristics

Understanding Computers: Today and Tomorrow, 14th Edition

23
Data Concepts and
Characteristics
– Data Privacy
• Growing concern because of the vast amounts of
personal data stored in databases today
• Many states require businesses to notify customers
when their personal data has been compromised
• Data breaches can be costly
• Data Organization
– Arranging data for efficient retrieval
– Indexed organization
• Uses an index to keep track of where data is stored in a
database
Understanding Computers: Today and Tomorrow, 14th Edition

24
Data Concepts and
Characteristics

Understanding Computers: Today and Tomorrow, 14th Edition

25
Data Concepts and
Characteristics
– Direct Organization
• Uses hashing algorithms to specify the exact storage
location
• Location is based on primary key
• Algorithms should be
designed to limit collisions
• Sometimes a combination
of indexing and direct
organization
is used within a
database system
Understanding Computers: Today and Tomorrow, 14th Edition

26
Quick Quiz
1. A column in a database in which customer names are stored would
be referred to as a ______________________.
a. field
b. record
c. table
2. True or False: Data validation procedures are used to ensure that
data entered into a database matches the specified type, format,
and allowable value.
3. The ______________________ contains metadata about the
database tables in a database.
Answers:
1) a; 2) True; 3) data dictionary
Understanding Computers: Today and Tomorrow, 14th Edition

27
Database Classifications
• Single-User vs. Muiltiuser Database Systems
– Single-User Database System
• Located on a single computer
• Designed to be accessed by one user
• Widely used for personal applications and very small
businesses
– Multiuser Database System
• Designed to be accessed by multiple users (most
business databases today)

Understanding Computers: Today and Tomorrow, 14th Edition

28
Database Classifications
• Client-Server and N-Tier Database Systems
– Client-Server Database Systems
• Has both clients (front end) and at least one database
server (back end)

Understanding Computers: Today and Tomorrow, 14th Edition

29
Database Classifications
– N-Tier Database System
• Has more than two tiers
• Middle tiers contain one or more programs stored on
one or more computers
– Program code is
separate from the
database
– Provides flexibility and
scalability
– Program code separate from
the database
Understanding Computers: Today and Tomorrow, 14th Edition

30
Database Classifications
• Centralized vs. Distributed Database Systems
– Centralized Database System
• Database is located on a single computer, such as a
server or mainframe
– Distributed Database System
• Data is physically divided among several computers
connected by a network, but the database logically
looks like it is a single database

Understanding Computers: Today and Tomorrow, 14th Edition

31
Database Classifications

Understanding Computers: Today and Tomorrow, 14th Edition

32
Database Classifications
• Disk-Based vs. In-Memory Database Systems
– Disk-Based Systems
• Data is stored on hard drives
– In-Memory Databases (IMDBs)
• Data is stored in main memory
• Faster, used when performance is critical
• Good backup procedures are essential

Understanding Computers: Today and Tomorrow, 14th Edition

33
Quick Quiz
1. Which type of database system is beginning to be used in high-end
systems where performance is crucial?
a. In-memory databases
b. Disk-based databases
c. Single-user databases
2. True or False: With the n-tier database model, there is at least one
middle piece of software between the client and the server.
3. With a(n) ______________________ database system, the
databases used by the system are all located on a single computer.
Answers:
1) a; 2) True; 3) centralized

Understanding Computers: Today and Tomorrow, 14th Edition

34
Database Models
• The Hierarchical and Network Database Models
– Hierarchical Databases
• Store data in a tree structure
• Typically a one-to-many relationship between data
entities
– Network Databases
• Show the relationship between data elements usually
as either one-to-many or many-to-many
– Most databases today are neither hierarchical or network
models

Understanding Computers: Today and Tomorrow, 14th Edition

35
Database Models
• The Relational Database Model (RDBMS)
– Data is organized in tables related by common fields
– Most widely used database model today
– Designing a Relational Database
– Identify the purpose of the database
– Determine the tables and fields
– Assign the fields to a table and reorganize as needed to
minimize redundancy (normalization)
– Finalize the structure (primary keys, field properties,
etc.)
Understanding Computers: Today and Tomorrow, 14th Edition

36
Database Models

Understanding Computers: Today and Tomorrow, 14th Edition

37
Database Models

Understanding Computers: Today and Tomorrow, 14th Edition

38
Database Models
– Creating a Relational Database
• Creating the Table
– Each table is created using the table structure
developed during the database design process
» In Access, this can be done in Design view or
Datasheet view
• Enter and Editing Data
– Existing data can be migrated to the new database
– New data can be added via a form or in Datasheet
view

Understanding Computers: Today and Tomorrow, 14th Edition

39
Database Models

Understanding Computers: Today and Tomorrow, 14th Edition

40
Database Models

Understanding Computers: Today and Tomorrow, 14th Edition

41
Database Models
• Relating Tables
– Once all tables have been created, they can be
related to one another using their primary keys

Understanding Computers: Today and Tomorrow, 14th Edition

42
Database Models
– Retrieving Information from a Relational Database
• Query
– A request to see information from a database that
matches specific criteria
– Specifies which records should be retrieved by
specifying criteria
– Can specify the fields to be displayed
– Many programs have wizards or other tools to make
it easy to create a query
– Must be designed to extract information as
efficiently as possible
– Queries are saved so they can be retrieved again
when needed; proper results are displayed each
time the query is run
Understanding Computers: Today and Tomorrow, 14th Edition

43
Database Models

Understanding Computers: Today and Tomorrow, 14th Edition

44
Database Models
• Report
– Formatted means of looking at a database table or
the results of a query
– Reports can pull data from more than one table
– Many programs have wizards or other tools to make
it easy to create a report
– Can be modified and customized using the Design
view
– Reports are saved so they can be retrieved again
when needed; proper results are displayed each
time the query is run
Understanding Computers: Today and Tomorrow, 14th Edition

45
Database Models

Understanding Computers: Today and Tomorrow, 14th Edition

46
Database Models
– Maintaining a Relational Database
• Data in tables can be edited as needed
• Table structures can be modified when needed
• Other possible modifications:
– Adding new indexes to speed up queries
– Deleting obsolete data
– Upgrading database software, installing patches
– Repairing/restoring data that has become corrupt
– Continuing to evaluate and improve security

Understanding Computers: Today and Tomorrow, 14th Edition

47
Database Models
• The Object-Oriented Database Model
– Object-Oriented Database Management System (OODBMS)
– Database system in which multiple types of data are stored
as objects along with the actions (methods) that can be
taken with that data
– Can contain virtually any type of data—video
clip, photograph with a narrative, text with music, etc., along
with the methods to be used with that data
– Objects can be retrieved using queries
• OQL – Object Query version of SQL
• Objects can be reused in other applications to create new
applications quickly
Understanding Computers: Today and Tomorrow, 14th Edition

48
Database Models

Understanding Computers: Today and Tomorrow, 14th Edition

49
Database Models
• Hybrid Database Models
– A combination of two or more database types or models
• Hybrid XML/Relational
Database
– Can store and
retrieve both XML data
and relational data

Understanding Computers: Today and Tomorrow, 14th Edition

50
Database Models
• Multidimensional Databases (MDDB)
– Type of database designed to be used with data
warehousing
– Often used in conjunction with Online Analytical
Processing (OLAP)
• MOLAP (Multidimensional OLAP)
– Data is stored in single structures called data cubes
• ROLAP (Relational OLAP)
– Data is stored in an existing relational database
using tables to store the summary information
• HOLAP (Hybrid OLAP)
– Combination of MOLAP and ROLAP technologies
Understanding Computers: Today and Tomorrow, 14th Edition

51
Databases and the Web
• Databases are commonly used on the Web
– Information retrieval, e-commerce, dynamic Web pages
• Amazon
• Flickr
• YouTube
• Facebook
– Examples of Web Databases in Use
• Information retrieval
– Data to be accessed and displayed on a Web page is
often stored in a database, i.e, Search sites
• Support and facilitate e-commerce
– Display product information, pricing, customer
information, shopping cart content, etc.
Understanding Computers: Today and Tomorrow, 14th Edition

52
Databases and the Web
• Web databases allow Web pages to be dynamic Web
pages
– Appearance or content of Web pages change based
on user’s input or stated preferences
• Web databases allow Web sites to display personalized
content for each visitor

Understanding Computers: Today and Tomorrow, 14th Edition

53
Databases and the Web

Understanding Computers: Today and Tomorrow, 14th Edition

54
Databases and the Web
• How Web Databases Work
– Visitor makes request via a Web site
• Search form
• Logging on to personalize site
• Uploading user content
– Web server converts the request into a database query
and passes it onto the database server, and then sends the
results back to the visitor

Understanding Computers: Today and Tomorrow, 14th Edition

55
Databases and the Web
– Middleware
• Software used to connect two otherwise separate
applications, such as a Web server and a database
management system
• Commonly written as scripts
– JavaScript
– VBScript
– CGI
– Active Server Pages (ASP)
– PHP Scripts
Understanding Computers: Today and Tomorrow, 14th Edition

56
Databases and the Web

Understanding Computers: Today and Tomorrow, 14th Edition

57
Quick Quiz
1. Which of the following is the most widely used type of database
today?
a. Network
b. Relational
c. Object-oriented
2. True or False: Databases are often used in conjunction with dynamic
Web pages.
3. A(n) _______________________ is used to extract specific
information from a database by specifying particular conditions
about the data to be retrieved.
Answers:
1) b; 2) True; 3) query
Understanding Computers: Today and Tomorrow, 14th Edition

58
Summary
•
•
•
•
•

What Is a Database?
Data Concepts and Characteristics
Database Classifications
Database Models
Databases and the Web

Understanding Computers: Today and Tomorrow, 14th Edition

59

More Related Content

What's hot

Database management systems
Database management systemsDatabase management systems
Database management systemsJoel Briza
 
DATA RESOURCE MANAGEMENT
DATA RESOURCE MANAGEMENT DATA RESOURCE MANAGEMENT
DATA RESOURCE MANAGEMENT huma sh
 
Multimedia Database
Multimedia DatabaseMultimedia Database
Multimedia Databaseshaikh2016
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to databaseArpee Callejo
 
Database Systems
Database SystemsDatabase Systems
Database SystemsUsman Tariq
 
A Survey on Big Data Analytics
A Survey on Big Data AnalyticsA Survey on Big Data Analytics
A Survey on Big Data AnalyticsBHARATH KUMAR
 
Introduction to databases
Introduction to databasesIntroduction to databases
Introduction to databasesBryan Corpuz
 
data resource management
 data resource management data resource management
data resource managementsoodsurbhi123
 
Lecture 3 multimedia databases
Lecture 3   multimedia databasesLecture 3   multimedia databases
Lecture 3 multimedia databasesRanjana N Jinde
 
Type of database models
Type of database modelsType of database models
Type of database modelsSanthiNivas
 
Database Concept by Luke Lonergan
Database Concept by Luke LonerganDatabase Concept by Luke Lonergan
Database Concept by Luke LonerganLuke Lonergan
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to databaseemailharmeet
 
Types of data bases
Types of data basesTypes of data bases
Types of data basesJanu Jahnavi
 

What's hot (20)

Session#5; data resource managment
Session#5;  data resource managmentSession#5;  data resource managment
Session#5; data resource managment
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
Data models
Data modelsData models
Data models
 
Metadata ppt
Metadata pptMetadata ppt
Metadata ppt
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
DATA RESOURCE MANAGEMENT
DATA RESOURCE MANAGEMENT DATA RESOURCE MANAGEMENT
DATA RESOURCE MANAGEMENT
 
Multimedia Database
Multimedia DatabaseMultimedia Database
Multimedia Database
 
Introduction to database
Introduction to databaseIntroduction to database
Introduction to database
 
Database Systems
Database SystemsDatabase Systems
Database Systems
 
A Survey on Big Data Analytics
A Survey on Big Data AnalyticsA Survey on Big Data Analytics
A Survey on Big Data Analytics
 
Introduction to databases
Introduction to databasesIntroduction to databases
Introduction to databases
 
data resource management
 data resource management data resource management
data resource management
 
Types of databases
Types of databases   Types of databases
Types of databases
 
Lecture 3 multimedia databases
Lecture 3   multimedia databasesLecture 3   multimedia databases
Lecture 3 multimedia databases
 
Type of database models
Type of database modelsType of database models
Type of database models
 
Database Concept by Luke Lonergan
Database Concept by Luke LonerganDatabase Concept by Luke Lonergan
Database Concept by Luke Lonergan
 
DBMS introduction
DBMS introductionDBMS introduction
DBMS introduction
 
Lecture 01 introduction to database
Lecture 01 introduction to databaseLecture 01 introduction to database
Lecture 01 introduction to database
 
Database concepts
Database conceptsDatabase concepts
Database concepts
 
Types of data bases
Types of data basesTypes of data bases
Types of data bases
 

Viewers also liked

Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...yaminohime
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...yaminohime
 
Role of Database Management in Information Systems
Role of Database Management in Information SystemsRole of Database Management in Information Systems
Role of Database Management in Information SystemswaQas ilYas
 
CH. 2 The Internet and The World Wide Web
CH. 2 The Internet and The World Wide WebCH. 2 The Internet and The World Wide Web
CH. 2 The Internet and The World Wide Webmalik1972
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...yaminohime
 
Una semana bs as, lila cala lido
Una semana bs as, lila cala lidoUna semana bs as, lila cala lido
Una semana bs as, lila cala lidocolegioaletheia
 
Using The Internet To Get Out Of Debt
Using The Internet To Get Out Of DebtUsing The Internet To Get Out Of Debt
Using The Internet To Get Out Of Debttateeddie
 
C:\Fakepath\Studio Tike
C:\Fakepath\Studio TikeC:\Fakepath\Studio Tike
C:\Fakepath\Studio TikeStudio Tike
 
Sinnena: Smak, lukt och känsel
Sinnena: Smak, lukt och känselSinnena: Smak, lukt och känsel
Sinnena: Smak, lukt och känselforsenskolan
 
Uc14 chap16
Uc14 chap16Uc14 chap16
Uc14 chap16ayahye
 
Cham soc tre bi bao luc
Cham soc tre bi bao lucCham soc tre bi bao luc
Cham soc tre bi bao lucHòa Vo
 
Consulta banco
Consulta bancoConsulta banco
Consulta bancowillyct9
 
Geometry 4.4 and 4.5 Day 3
Geometry 4.4 and 4.5 Day 3Geometry 4.4 and 4.5 Day 3
Geometry 4.4 and 4.5 Day 3Mr. Parisi
 

Viewers also liked (20)

Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 6 - Applica...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 12 - Inform...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 11 - E-Comm...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 4 - Input a...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 8 - The Int...
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 10 - Multim...
 
Role of Database Management in Information Systems
Role of Database Management in Information SystemsRole of Database Management in Information Systems
Role of Database Management in Information Systems
 
CH. 2 The Internet and The World Wide Web
CH. 2 The Internet and The World Wide WebCH. 2 The Internet and The World Wide Web
CH. 2 The Internet and The World Wide Web
 
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...
Understanding Computers: Today and Tomorrow, 13th Edition Chapter 9 - Network...
 
Una semana bs as, lila cala lido
Una semana bs as, lila cala lidoUna semana bs as, lila cala lido
Una semana bs as, lila cala lido
 
Using The Internet To Get Out Of Debt
Using The Internet To Get Out Of DebtUsing The Internet To Get Out Of Debt
Using The Internet To Get Out Of Debt
 
C:\Fakepath\Studio Tike
C:\Fakepath\Studio TikeC:\Fakepath\Studio Tike
C:\Fakepath\Studio Tike
 
Sinnena: Smak, lukt och känsel
Sinnena: Smak, lukt och känselSinnena: Smak, lukt och känsel
Sinnena: Smak, lukt och känsel
 
Set 7 Easy Dictionary of Quran
Set 7 Easy Dictionary of QuranSet 7 Easy Dictionary of Quran
Set 7 Easy Dictionary of Quran
 
Niqo¡¡¡
Niqo¡¡¡Niqo¡¡¡
Niqo¡¡¡
 
IPC Eagle Professional Vacuums
IPC Eagle Professional Vacuums IPC Eagle Professional Vacuums
IPC Eagle Professional Vacuums
 
Uc14 chap16
Uc14 chap16Uc14 chap16
Uc14 chap16
 
Cham soc tre bi bao luc
Cham soc tre bi bao lucCham soc tre bi bao luc
Cham soc tre bi bao luc
 
Consulta banco
Consulta bancoConsulta banco
Consulta banco
 
Geometry 4.4 and 4.5 Day 3
Geometry 4.4 and 4.5 Day 3Geometry 4.4 and 4.5 Day 3
Geometry 4.4 and 4.5 Day 3
 

Similar to Uc14 chap14

System Analysis And Design
System Analysis And DesignSystem Analysis And Design
System Analysis And DesignLijo Stalin
 
Sql server ___________session_1-intro
Sql server  ___________session_1-introSql server  ___________session_1-intro
Sql server ___________session_1-introEhtisham Ali
 
Chapter 7. Databases Chapter In Introduction to Computer. Pptx
Chapter 7. Databases Chapter In Introduction to Computer. PptxChapter 7. Databases Chapter In Introduction to Computer. Pptx
Chapter 7. Databases Chapter In Introduction to Computer. PptxMohsinChaudhary17
 
Overview of Data Base Systems Concepts and Architecture
Overview of Data Base Systems Concepts and ArchitectureOverview of Data Base Systems Concepts and Architecture
Overview of Data Base Systems Concepts and ArchitectureRubal Sagwal
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)Dilawar Khan
 
PPT-UEU-Basis-Data-Pertemuan-1.pptx
PPT-UEU-Basis-Data-Pertemuan-1.pptxPPT-UEU-Basis-Data-Pertemuan-1.pptx
PPT-UEU-Basis-Data-Pertemuan-1.pptxUbaidURRahman78
 
NoSQL-Database-Concepts
NoSQL-Database-ConceptsNoSQL-Database-Concepts
NoSQL-Database-ConceptsBhaskar Gunda
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbmsRupali Rana
 

Similar to Uc14 chap14 (20)

Uc13.chapter.14
Uc13.chapter.14Uc13.chapter.14
Uc13.chapter.14
 
DBMS.ppt
DBMS.pptDBMS.ppt
DBMS.ppt
 
Database management system
Database management systemDatabase management system
Database management system
 
System Analysis And Design
System Analysis And DesignSystem Analysis And Design
System Analysis And Design
 
BAB 7 Pangkalan data new
BAB 7   Pangkalan data newBAB 7   Pangkalan data new
BAB 7 Pangkalan data new
 
Sql server ___________session_1-intro
Sql server  ___________session_1-introSql server  ___________session_1-intro
Sql server ___________session_1-intro
 
Chapter 7. Databases Chapter In Introduction to Computer. Pptx
Chapter 7. Databases Chapter In Introduction to Computer. PptxChapter 7. Databases Chapter In Introduction to Computer. Pptx
Chapter 7. Databases Chapter In Introduction to Computer. Pptx
 
Overview of Data Base Systems Concepts and Architecture
Overview of Data Base Systems Concepts and ArchitectureOverview of Data Base Systems Concepts and Architecture
Overview of Data Base Systems Concepts and Architecture
 
CS3270 - DATABASE SYSTEM - Lecture (1)
CS3270 - DATABASE SYSTEM -  Lecture (1)CS3270 - DATABASE SYSTEM -  Lecture (1)
CS3270 - DATABASE SYSTEM - Lecture (1)
 
PPT-UEU-Basis-Data-Pertemuan-1.pptx
PPT-UEU-Basis-Data-Pertemuan-1.pptxPPT-UEU-Basis-Data-Pertemuan-1.pptx
PPT-UEU-Basis-Data-Pertemuan-1.pptx
 
Dbms unit 1
Dbms unit 1Dbms unit 1
Dbms unit 1
 
(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)(Dbms) class 1 & 2 (Presentation)
(Dbms) class 1 & 2 (Presentation)
 
NoSQL-Database-Concepts
NoSQL-Database-ConceptsNoSQL-Database-Concepts
NoSQL-Database-Concepts
 
Ch 2-introduction to dbms
Ch 2-introduction to dbmsCh 2-introduction to dbms
Ch 2-introduction to dbms
 
DBMS Bascis
DBMS BascisDBMS Bascis
DBMS Bascis
 
Information Management
Information ManagementInformation Management
Information Management
 
Unit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptxUnit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptx
 
MS-CIT Unit 9.pptx
MS-CIT Unit 9.pptxMS-CIT Unit 9.pptx
MS-CIT Unit 9.pptx
 
lecture5 (1) (2).pptx
lecture5 (1) (2).pptxlecture5 (1) (2).pptx
lecture5 (1) (2).pptx
 
ITE 101 - Week 7
ITE 101 - Week 7ITE 101 - Week 7
ITE 101 - Week 7
 

More from ayahye

Uc14 chap15
Uc14 chap15Uc14 chap15
Uc14 chap15ayahye
 
Uc14 chap13
Uc14 chap13Uc14 chap13
Uc14 chap13ayahye
 
Uc14 chap12
Uc14 chap12Uc14 chap12
Uc14 chap12ayahye
 
Uc14 chap11
Uc14 chap11Uc14 chap11
Uc14 chap11ayahye
 
Uc14 chap10
Uc14 chap10Uc14 chap10
Uc14 chap10ayahye
 
Uc14 chap09
Uc14 chap09Uc14 chap09
Uc14 chap09ayahye
 
Uc14 chap08
Uc14 chap08Uc14 chap08
Uc14 chap08ayahye
 
Uc14 chap07
Uc14 chap07Uc14 chap07
Uc14 chap07ayahye
 
Uc14 chap06
Uc14 chap06Uc14 chap06
Uc14 chap06ayahye
 
Uc14 chap05
Uc14 chap05Uc14 chap05
Uc14 chap05ayahye
 
Uc14 chap04
Uc14 chap04Uc14 chap04
Uc14 chap04ayahye
 
Uc14 chap03
Uc14 chap03Uc14 chap03
Uc14 chap03ayahye
 
Uc14 chap02
Uc14 chap02Uc14 chap02
Uc14 chap02ayahye
 
Uc14 chap01
Uc14 chap01Uc14 chap01
Uc14 chap01ayahye
 

More from ayahye (14)

Uc14 chap15
Uc14 chap15Uc14 chap15
Uc14 chap15
 
Uc14 chap13
Uc14 chap13Uc14 chap13
Uc14 chap13
 
Uc14 chap12
Uc14 chap12Uc14 chap12
Uc14 chap12
 
Uc14 chap11
Uc14 chap11Uc14 chap11
Uc14 chap11
 
Uc14 chap10
Uc14 chap10Uc14 chap10
Uc14 chap10
 
Uc14 chap09
Uc14 chap09Uc14 chap09
Uc14 chap09
 
Uc14 chap08
Uc14 chap08Uc14 chap08
Uc14 chap08
 
Uc14 chap07
Uc14 chap07Uc14 chap07
Uc14 chap07
 
Uc14 chap06
Uc14 chap06Uc14 chap06
Uc14 chap06
 
Uc14 chap05
Uc14 chap05Uc14 chap05
Uc14 chap05
 
Uc14 chap04
Uc14 chap04Uc14 chap04
Uc14 chap04
 
Uc14 chap03
Uc14 chap03Uc14 chap03
Uc14 chap03
 
Uc14 chap02
Uc14 chap02Uc14 chap02
Uc14 chap02
 
Uc14 chap01
Uc14 chap01Uc14 chap01
Uc14 chap01
 

Recently uploaded

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 

Recently uploaded (20)

Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 

Uc14 chap14

  • 2. Learning Objectives 1. Explain what a database is, including common database terminology, and list some of the advantages and disadvantages of using databases. 2. Discuss some basic concepts and characteristics of data, such as data hierarchy, entity relationships, and data definition. 3. Describe the importance of data integrity, security, and privacy, and how they affect database design. Understanding Computers: Today and Tomorrow, 14th Edition 2 2
  • 3. Learning Objectives 4. Identify some basic database classifications and discuss their differences. 5. List the most common database models and discuss how they are used today. 6. Understand how a relational database is designed, created, used, and maintained. 7. Describe some ways databases are used on the Web. Understanding Computers: Today and Tomorrow, 14th Edition 3
  • 4. Overview • This chapter covers: – What a database is, the individuals who use them, and how databases evolved – Important database concepts and vocabulary – Database classifications and models – How to create and use a relational database – How databases are used on the Web Understanding Computers: Today and Tomorrow, 14th Edition 4 4
  • 5. What is a Database? • Database – A collection of related data stored in a manner so it can be retrieved as needed • Database Management System (DBMS) – Used to create, maintain, and access databases • A database typically consists of: – Tables • Collection of related records – Fields (columns) • Single category of data to be stored in a database (name, telephone number, etc.) Understanding Computers: Today and Tomorrow, 14th Edition 5
  • 6. What is a Database? – Records (rows) • Collection of related fields in a database (all the fields for one customer, for example) • Relational Database – Data from several tables is tied together (related) using a field that the tables have in common Understanding Computers: Today and Tomorrow, 14th Edition 6
  • 7. What is a Database? • A Simple Relational Database Example Understanding Computers: Today and Tomorrow, 14th Edition 7
  • 8. What is a Database? – Primary Key • Specific field that uniquely identifies the records in a table • Used in a relational database to relate tables together Understanding Computers: Today and Tomorrow, 14th Edition 8
  • 9. What is a Database? – PC DBMSs • Microsoft Access, Corel Paradox – More comprehensive enterprise databases • Oracle Database, IBM DB2, Microsoft SQL Server • Individuals Involved with a Database Management System – Database Designers • Design the database – Database Developers • Create the database – Database Programmers • Write the programs needed to access the database or tie the database to other programs Understanding Computers: Today and Tomorrow, 14th Edition 9
  • 10. What is a Database? – Database Administrators • Responsible for managing the databases within an organization – Users • Individuals who enter data, update data, and retrieve information out of the database Understanding Computers: Today and Tomorrow, 14th Edition 10
  • 11. What is a Database? • The Evolution of Databases Understanding Computers: Today and Tomorrow, 14th Edition 11
  • 12. What is a Database? • Advantages and Disadvantages of the DBMS Approach – Advantages • Low level of redundancy – Faster response time – Lower storage requirements – Easier to secure – Increased data accuracy – Disadvantages • Increased vulnerability (backup is essential) Understanding Computers: Today and Tomorrow, 14th Edition 12
  • 13. Data Concepts and Characteristics • Data Hierarchy – Fields/columns • Hold single pieces of data – Records/rows • Groups of related fields – Tables • Collection of related records – Database • Contains a group of related tables Understanding Computers: Today and Tomorrow, 14th Edition 13
  • 14. Data Concepts and Characteristics • Entities and Entity Relationships – Entity • A person, object, or event of importance to the organization • Entities that the organization wants to store data about typically becomes a database table – Attributes • Characteristics of an entity • Typically become fields in the entity’s database table – Relationship • An association between two or more entities Understanding Computers: Today and Tomorrow, 14th Edition 14
  • 15. Data Concepts and Characteristics – One to One (1:1) Entity Relationships • One entity is related to only one other entity of a particular type – Each store has a single manager • Not a common type of relationship – One to Many (O:M) Entity Relationship • Most common type of relationship • One entity can be related to more than one other entity – A supplier supplies more than one product to a company Understanding Computers: Today and Tomorrow, 14th Edition 15
  • 16. Data Concepts and Characteristics – Many to Many (M:M) Entity Relationships • One entity can be related to more than one other entity, and those entities can be related to multiple entities of the same type as the original entity – An order can contain multiple products and a product can appear on multiple orders • Data Definition – The process of describing the properties of data to be included in a database table Understanding Computers: Today and Tomorrow, 14th Edition 16
  • 17. Data Concepts and Characteristics – During data definition, each field is assigned: • Name (must be unique within the table) • Data type (such as Text, Number, Currency, Date/Time) • Description (optional description of the field) • Properties (field size, format of the field, allowable range, if field is required, etc.) – Finished specifications for a table become the table structure Understanding Computers: Today and Tomorrow, 14th Edition 17
  • 18. Data Concepts and Characteristics Understanding Computers: Today and Tomorrow, 14th Edition 18
  • 19. Data Concepts and Characteristics • The Data Dictionary – Contains all data definitions in a database • Table structures – Names, types, and properties of each field • Security information (passwords, etc.) • Relationships between the tables in the database • Current information about each table, such as the current number of records • Does not contain any of the data in the tables • Does contain metadata, which is information about the database tables • Ensures that data being entered into the database does not violate any specified criteria Understanding Computers: Today and Tomorrow, 14th Edition 19
  • 20. Data Concepts and Characteristics • Data Integrity, Security, and Privacy – Data Integrity • Accuracy of Data – Quality of data entered determines the quality of generated information • Data Validation – Process of ensuring that data entered into the database is valid – Record validation rules » Checks all fields before changes to a record are saved – Can be enforced on a per transaction basis so the entire transaction will fail if one part is invalid Understanding Computers: Today and Tomorrow, 14th Edition 20
  • 21. Data Concepts and Characteristics • Database Locking – Prevents two individuals from changing the same data at the same time Understanding Computers: Today and Tomorrow, 14th Edition 21
  • 22. Data Concepts and Characteristics – Data Security • Protects data against destruction and misuse • Protects against unauthorized access to and unauthorized use of a database • Database activity monitoring programs can be used to detect possible intrusions • Should include strict backup and disaster-recovery procedures (disaster-recovery plan) – Protects against data loss Understanding Computers: Today and Tomorrow, 14th Edition 22
  • 23. Data Concepts and Characteristics Understanding Computers: Today and Tomorrow, 14th Edition 23
  • 24. Data Concepts and Characteristics – Data Privacy • Growing concern because of the vast amounts of personal data stored in databases today • Many states require businesses to notify customers when their personal data has been compromised • Data breaches can be costly • Data Organization – Arranging data for efficient retrieval – Indexed organization • Uses an index to keep track of where data is stored in a database Understanding Computers: Today and Tomorrow, 14th Edition 24
  • 25. Data Concepts and Characteristics Understanding Computers: Today and Tomorrow, 14th Edition 25
  • 26. Data Concepts and Characteristics – Direct Organization • Uses hashing algorithms to specify the exact storage location • Location is based on primary key • Algorithms should be designed to limit collisions • Sometimes a combination of indexing and direct organization is used within a database system Understanding Computers: Today and Tomorrow, 14th Edition 26
  • 27. Quick Quiz 1. A column in a database in which customer names are stored would be referred to as a ______________________. a. field b. record c. table 2. True or False: Data validation procedures are used to ensure that data entered into a database matches the specified type, format, and allowable value. 3. The ______________________ contains metadata about the database tables in a database. Answers: 1) a; 2) True; 3) data dictionary Understanding Computers: Today and Tomorrow, 14th Edition 27
  • 28. Database Classifications • Single-User vs. Muiltiuser Database Systems – Single-User Database System • Located on a single computer • Designed to be accessed by one user • Widely used for personal applications and very small businesses – Multiuser Database System • Designed to be accessed by multiple users (most business databases today) Understanding Computers: Today and Tomorrow, 14th Edition 28
  • 29. Database Classifications • Client-Server and N-Tier Database Systems – Client-Server Database Systems • Has both clients (front end) and at least one database server (back end) Understanding Computers: Today and Tomorrow, 14th Edition 29
  • 30. Database Classifications – N-Tier Database System • Has more than two tiers • Middle tiers contain one or more programs stored on one or more computers – Program code is separate from the database – Provides flexibility and scalability – Program code separate from the database Understanding Computers: Today and Tomorrow, 14th Edition 30
  • 31. Database Classifications • Centralized vs. Distributed Database Systems – Centralized Database System • Database is located on a single computer, such as a server or mainframe – Distributed Database System • Data is physically divided among several computers connected by a network, but the database logically looks like it is a single database Understanding Computers: Today and Tomorrow, 14th Edition 31
  • 32. Database Classifications Understanding Computers: Today and Tomorrow, 14th Edition 32
  • 33. Database Classifications • Disk-Based vs. In-Memory Database Systems – Disk-Based Systems • Data is stored on hard drives – In-Memory Databases (IMDBs) • Data is stored in main memory • Faster, used when performance is critical • Good backup procedures are essential Understanding Computers: Today and Tomorrow, 14th Edition 33
  • 34. Quick Quiz 1. Which type of database system is beginning to be used in high-end systems where performance is crucial? a. In-memory databases b. Disk-based databases c. Single-user databases 2. True or False: With the n-tier database model, there is at least one middle piece of software between the client and the server. 3. With a(n) ______________________ database system, the databases used by the system are all located on a single computer. Answers: 1) a; 2) True; 3) centralized Understanding Computers: Today and Tomorrow, 14th Edition 34
  • 35. Database Models • The Hierarchical and Network Database Models – Hierarchical Databases • Store data in a tree structure • Typically a one-to-many relationship between data entities – Network Databases • Show the relationship between data elements usually as either one-to-many or many-to-many – Most databases today are neither hierarchical or network models Understanding Computers: Today and Tomorrow, 14th Edition 35
  • 36. Database Models • The Relational Database Model (RDBMS) – Data is organized in tables related by common fields – Most widely used database model today – Designing a Relational Database – Identify the purpose of the database – Determine the tables and fields – Assign the fields to a table and reorganize as needed to minimize redundancy (normalization) – Finalize the structure (primary keys, field properties, etc.) Understanding Computers: Today and Tomorrow, 14th Edition 36
  • 37. Database Models Understanding Computers: Today and Tomorrow, 14th Edition 37
  • 38. Database Models Understanding Computers: Today and Tomorrow, 14th Edition 38
  • 39. Database Models – Creating a Relational Database • Creating the Table – Each table is created using the table structure developed during the database design process » In Access, this can be done in Design view or Datasheet view • Enter and Editing Data – Existing data can be migrated to the new database – New data can be added via a form or in Datasheet view Understanding Computers: Today and Tomorrow, 14th Edition 39
  • 40. Database Models Understanding Computers: Today and Tomorrow, 14th Edition 40
  • 41. Database Models Understanding Computers: Today and Tomorrow, 14th Edition 41
  • 42. Database Models • Relating Tables – Once all tables have been created, they can be related to one another using their primary keys Understanding Computers: Today and Tomorrow, 14th Edition 42
  • 43. Database Models – Retrieving Information from a Relational Database • Query – A request to see information from a database that matches specific criteria – Specifies which records should be retrieved by specifying criteria – Can specify the fields to be displayed – Many programs have wizards or other tools to make it easy to create a query – Must be designed to extract information as efficiently as possible – Queries are saved so they can be retrieved again when needed; proper results are displayed each time the query is run Understanding Computers: Today and Tomorrow, 14th Edition 43
  • 44. Database Models Understanding Computers: Today and Tomorrow, 14th Edition 44
  • 45. Database Models • Report – Formatted means of looking at a database table or the results of a query – Reports can pull data from more than one table – Many programs have wizards or other tools to make it easy to create a report – Can be modified and customized using the Design view – Reports are saved so they can be retrieved again when needed; proper results are displayed each time the query is run Understanding Computers: Today and Tomorrow, 14th Edition 45
  • 46. Database Models Understanding Computers: Today and Tomorrow, 14th Edition 46
  • 47. Database Models – Maintaining a Relational Database • Data in tables can be edited as needed • Table structures can be modified when needed • Other possible modifications: – Adding new indexes to speed up queries – Deleting obsolete data – Upgrading database software, installing patches – Repairing/restoring data that has become corrupt – Continuing to evaluate and improve security Understanding Computers: Today and Tomorrow, 14th Edition 47
  • 48. Database Models • The Object-Oriented Database Model – Object-Oriented Database Management System (OODBMS) – Database system in which multiple types of data are stored as objects along with the actions (methods) that can be taken with that data – Can contain virtually any type of data—video clip, photograph with a narrative, text with music, etc., along with the methods to be used with that data – Objects can be retrieved using queries • OQL – Object Query version of SQL • Objects can be reused in other applications to create new applications quickly Understanding Computers: Today and Tomorrow, 14th Edition 48
  • 49. Database Models Understanding Computers: Today and Tomorrow, 14th Edition 49
  • 50. Database Models • Hybrid Database Models – A combination of two or more database types or models • Hybrid XML/Relational Database – Can store and retrieve both XML data and relational data Understanding Computers: Today and Tomorrow, 14th Edition 50
  • 51. Database Models • Multidimensional Databases (MDDB) – Type of database designed to be used with data warehousing – Often used in conjunction with Online Analytical Processing (OLAP) • MOLAP (Multidimensional OLAP) – Data is stored in single structures called data cubes • ROLAP (Relational OLAP) – Data is stored in an existing relational database using tables to store the summary information • HOLAP (Hybrid OLAP) – Combination of MOLAP and ROLAP technologies Understanding Computers: Today and Tomorrow, 14th Edition 51
  • 52. Databases and the Web • Databases are commonly used on the Web – Information retrieval, e-commerce, dynamic Web pages • Amazon • Flickr • YouTube • Facebook – Examples of Web Databases in Use • Information retrieval – Data to be accessed and displayed on a Web page is often stored in a database, i.e, Search sites • Support and facilitate e-commerce – Display product information, pricing, customer information, shopping cart content, etc. Understanding Computers: Today and Tomorrow, 14th Edition 52
  • 53. Databases and the Web • Web databases allow Web pages to be dynamic Web pages – Appearance or content of Web pages change based on user’s input or stated preferences • Web databases allow Web sites to display personalized content for each visitor Understanding Computers: Today and Tomorrow, 14th Edition 53
  • 54. Databases and the Web Understanding Computers: Today and Tomorrow, 14th Edition 54
  • 55. Databases and the Web • How Web Databases Work – Visitor makes request via a Web site • Search form • Logging on to personalize site • Uploading user content – Web server converts the request into a database query and passes it onto the database server, and then sends the results back to the visitor Understanding Computers: Today and Tomorrow, 14th Edition 55
  • 56. Databases and the Web – Middleware • Software used to connect two otherwise separate applications, such as a Web server and a database management system • Commonly written as scripts – JavaScript – VBScript – CGI – Active Server Pages (ASP) – PHP Scripts Understanding Computers: Today and Tomorrow, 14th Edition 56
  • 57. Databases and the Web Understanding Computers: Today and Tomorrow, 14th Edition 57
  • 58. Quick Quiz 1. Which of the following is the most widely used type of database today? a. Network b. Relational c. Object-oriented 2. True or False: Databases are often used in conjunction with dynamic Web pages. 3. A(n) _______________________ is used to extract specific information from a database by specifying particular conditions about the data to be retrieved. Answers: 1) b; 2) True; 3) query Understanding Computers: Today and Tomorrow, 14th Edition 58
  • 59. Summary • • • • • What Is a Database? Data Concepts and Characteristics Database Classifications Database Models Databases and the Web Understanding Computers: Today and Tomorrow, 14th Edition 59