Professional Documents
Culture Documents
1.1 - Chapter 1 - The Worlds of Database Systems
1.1 - Chapter 1 - The Worlds of Database Systems
1.1 - Chapter 1 - The Worlds of Database Systems
Chapter1
The Worlds of Database Systems
Objectives
CUST-PO SET
SALES-PO SET
One-to-one
PO-ITEM SET relationship
MEMBER LINE-ITEMS
One-to-many
relationship
Instance
7
Problems with
the networked model
1. Can each PO
be owned by
several records of
different types?
Like: Smith
(customer),
Darwin (saler)?
2. Can each PO be
owned by several
records of the same
type?
Like: Smith
(customer), Bean
(customer)?
9
Problems with
the networked model
Student S1 S2
Course C1 C2 C2 C3 C4
Instructor I1 I2 I2 I3 I1
How is Hierarchical?
b. Hierarchical data model
Student S1 S2
Course C1 C2 C2 C3 C4
Instructor I1 I2 I2 I3 I1
?
Pros and cons
PROPERTY(ADDRESS,VALUE,COUNTY_ID)
COUNTY(COUNTY_ID,NAME,TAX_RATE)
To answer the query "what are the taxes on
property x" the user would:
Retrieve the property record
Link the property and county records through the
common attribute COUNTY_ID
Compute the taxes by multiplying VALUE from
the property tuple with TAX_RATE from the
linked county tuple
More on the Evolution of
Database Systems
23
More on the Evolution of
Database Systems
24
Big data. How big is big?
By 2020, the accumulated volume of big data will
increase to 44 trillion GB.
40,000 search queries are performed per second
(on Google alone), which makes it 3.46 million
searches per day and 1.2 trillion every year.
Every minute Facebook users send roughly 31.25
million messages and watch 2.77 million videos.
On YouTube alone, 300 hours of video are uploaded
every minute.
Globally, the number of smartphone users will grow
to 6.1 billion by 2020
25
2. Outline of
Database-System Studies
FDs
Normal
Forms
ERD
SQL
What are the core concepts?
1 2 3
Functional 6-Relational Constraints
Dependencies Algebra on relations
Operators
What are the core concepts?
4 5 6
- Keys
- Close Sets - Super Keys -ERD
- Algorithms -Normal Forms -ERD design
(1NF, 2NF, 3NF, principles
to find Close BCNF, MVD)
Sets -Algorithm to
decompose a
relation into
3NF, BCNF
What are the core concepts?
7 8 9
Extra
DDL,
operators on DML: Transactions,
Bag Relations: - SELECT Triggers,
- Grouping - INSERT Procedures
- Duplicate - UPDATE
- DELETE
Elimination
- Outer Join
…
ĐẠI HỌC FPT CẦN THƠ