Database lec 1
Database lec 1
Ninth Edition
Chapter 1
Getting Started
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Learning Objectives (1 of 2)
2
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
The Importance of Databases in the
4
a Web Browser
Device World
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Why Use a Database?
7
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.7 The Student with Advisor
8
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.8 The Advisor and Student
10
Tables
Student Tables
Modification Problems
Tables
List as a Spreadsheet
Database Tables
Using SQL?
• The leading technique for data definition and manipulation is
Structured Query Language (SQL).
• SQL is an international standard for creating, processing, and
querying databases and their tables.
• Using SQL you can:
– Reconstruct lists from their underlying tables,
– Query for specific data conditions,
– Perform calculations on data in tables, and
– Insert, update, and delete data.
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
SQL Art Course Database Example
18
• The results of running the code above can be seen in Figure 1.15 on
the next page.
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.15 Results of the SQL
19
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.17 Components of a
21
Database System
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
The Database
22
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.18 Example Metadata: A
23
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.20 Functions of a DBMS
25
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Referential Integrity Constraints
26
Application Programs
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.22 Example Data Entry
28
Form
Database Systems
• A personal database system is used by only one person and
would include:
– Only a few tables containing only a few hundred rows of
data
– Use only one computer with one user at a time
• An enterprise database system is used international
organizations with thousands of concurrent users and would
include:
– Hundreds of tables with millions of rows of data
– In use 24/7 24 hours a day
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.25 Personal Database
32
System
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.26 SQL Generated by
33
Database System
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.29 My SQL 8.0
36
2017
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.32 The WP Web Page
40
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
What is Big Data?
42
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.33 ArangoDB
43
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved
Figure 1.34 Microsoft Azure Cloud
45
Service
Copyright © 2020, 2017, 2015 Pearson Education, Inc. All Rights Reserved