Professional Documents
Culture Documents
Relational Databases
LECTURED BY,
Nur Afiqah
Explain database
Explain the importance and systems, including Describe what a relational
advantages of databases, logical and physical database is, how it
as well as the difference views, schemas, the organizes data, and how
between database and data dictionary, and to create a set of well-
file-based legacy DBMS languages. structured relational
systems. database tables.
WHAT IS A DATABASE?
3
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
Figure 4.1 File-Oriented Systems versus 4
Database Systems
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
Copyright © 2021 Pearson Education Ltd.
Using Data Warehouse for 5
Data Analytics
• Data warehouse is one or more very large databases
containing detailed and summarized data for a number of
years used for analysis rather than transaction processing.
• Analyzing large amounts of data for strategic decision making
is referred to as data analytics.
– In data analytics, one can find a vast array of sophisticated
tools that allow for multidimensional analysis, complex
calculations, data projections, and simulations.
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
6
ADVANTAGES OF DATABASES
Data sharing
Data is
independent
of the
programs that
Data is easily accessed for use the data
reporting and cross-
functional analysis
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
DATABASE USERS AND DESIGNERS
7
Conceptual-level Internal-level
organization wide low level view
view
External-level
individual
user’s view
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
Figure 4.5 Three Levels of Schemas 9
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
Copyright © 2021 Pearson Education Ltd.
Access Rights 10
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
Copyright © 2021 Pearson Education Ltd.
DATABASE DESIGN
11
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
DBMS LANGUAGES
12
2
1
Although the
A Collection of conceptual view
two-dimensional appears to the
tables with each user that this
table representing information is in
the object about one big table, it
which we wish to really is a set of
collect and store tables that relate
information. to one another.
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
CONCEPTUAL VIEW EXAMPLE 14
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
RELATIONAL DATA TABLES (1 OF 2)
15
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
RELATIONAL DATA TABLES (2 OF 2)
16
• Primary Keys
• Foreign Key (Customer # is a Foreign key in
the Sales table because it is a Primary key that
uniquely identifies Customers in the
Customer table). Because of this, the Sales
table can relate to the Customer table (see
red arrow above).
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
WHY HAVE A SET OF RELATED TABLES?
17
Update Insert
anomaly Data stored in one large table can be
redundant and inefficient causing the anomaly
1 following problems:
3
Delete
2
anomaly
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
RELATIONAL DATABASE DESIGN RULES
18
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
Copyright © 2021 Pearson Education Ltd.
QUERIES
20
QUERIES
invoices?
QUERIES
www.yourcompany.com
© 2017 The Worthy PowerPoint Presentation.
CREATING THE QUERY
KEY TERMS
• Insert anomaly
• Delete anomaly
• Relational database
• Entity integrity rule
• Referential integrity rule
•
•
Normalization
Semantic data modeling
• External-level schema
• Subschema
THANK
YOU
• Database • Internal-level schema
• Database management system (DBMS) • Data dictionary
• Database system • Data definition language (DDL)
• Database administrator (DBA) • Data manipulation language (DML)
• Data warehouse • Data query language (DQL)
• Business intelligence
• Report writer
• Online analytical processing (OLAP)
• Data model
• Data mining
• Record layout • Relational data model
• Logical view • Tuple
• Physical view • Primary key
• Schema • Foreign key
• Conceptual-level schema