Professional Documents
Culture Documents
FIN 307: Database Management and Financial Application
FIN 307: Database Management and Financial Application
FIN 307
Laizhong Cui ©
College of Computer Science and Software Engineering
Shenzhen University
cuilz@szu.edu.cn
http://csse.szu.edu.cn/staff/cuilz/
Fall 2021
Instructor Information
○ Name: Laizhong Cui
○ Telephone: 18607550977
○ Email: cuilz@szu.edu.cn
In s t ru c t o r ○ Research interests
Computer Networks
a n d TA
■
■ Big Data Management
■ Edge Computing
■ Internet of Things (IoT)
■ Machine Learning
TA Information
○ Name: Fuming Lan
○ Telephone: 18786884848
○ Email: 12132975@mail.sustech.edu.cn
Course Summary
We’ll learn How To…
○ Database Design
FIN 307 ■
■
Entity-Relationship Model
The Relational Data Model
■ Transform ER schema to relational schema
Lo g is t ic s
Lecture Notes
● Lecture Notes (PowerPoint Slides) will be posted in the course folder
on Blackboard.
What is the grading breakdown for FIN 307?
● Experiments (6 exercises):30%
● Project (including presentation): 20%, one group can have 1-4
students
● Final Exam: 50%
# Views, Likes
ipsum
Example
Un p a c k Youtube
Lorem ipsum
Yo u t u b e D B DB
congue
Learn
Lorem
ipsum Modify
Lorem
ipsum
Un p a c k Lorem ipsum
Ca rs D B Cars DB
congue
Learn
Lorem
ipsum Modify
Lorem
ipsum
Un p a c k
ATM D B:
Tra n s a c t io n
Read Balance Read Balance
Give money vs Update Balance
Update Balance Give money
Transfer $3k from a10 to a20:
Transactions
Example
Scenarios
1. Crash before 1?
2. After 1 but before 2? [Bad!! a10: 17,000, a20: 15,000]
3. After 2?
Platform to store, manage data Supporting
Scale
Speed
Read
Lorem
Stability
ipsum
Evolution
Goals of
Reliability
Cost efficiency
St a n d a rd Operations
Lorem ipsum
Da ta b a se s (any DB)
congue
Learn
Lorem
ipsum Modify
Lorem
ipsum
DBs are often optimized for key use cases
L
L L
o
o o
r
r r
e
Goals of
e e
m
m m L L
L L L L i
i i o o
o o o o p
p p r r
r r r r s
s s e DB e
e DB e e DB e u
u u m m
Sp e c ia l m m m m m
m m i i
i i i i
p p p p
p p
Da ta b a se s s s s s
s s
u u u u
u u
m m m m
m m
Query Processor
DBMS
Transaction
Architecture Manager
Storage Manager
Stored Data
DBMS developers: Those who design and implement DBMS
software: buffer manager, query processor, transaction
manager, interface, ...
Persons
In vo lvin g
D BS System analysts: Those who determine the requirement of
end users and develop specifications for canned
transactions that meet the requirements.
How?
Exa m p le
Mobile Game
Report & Share
Business/Product
Analysis
Ga m e Ap p
Real-Time
DBMS
User Events
DB
D B v0 Q1: 1000 users/sec? Q7: How to model/evolve game data? Q4: Which user cohorts?
Q2: Offline? Q8: How to scale to millions of users? Q5: Next features to build?
Q3: Support v1, v1’ versions? Q9: When machines die, restore game Experiments to run?
state gracefully? Q6: Predict ads demand?
Ga m e Ap p
Analysis
DB
Real-Time 4
User Events
Data Processing Analytics Engine
1
E-T-L, Dataflow BigQuery
2 3
D a t a syst e m
“v1” o n Clo u d
Exa m p le
Ga m e Ap p Mobile Game Data Exploration
Cloud Datalab
Report & Share
Business/Product
Analysis
DB
4
Data Sync
Data Processing Analytics Engine
1 MySQL, Dataflow BigQuery
2 3
D a t a syst e m 0 Real-Time
User Events
“v2” Clo u d +
Lo c a l Local DB
D a t a s ys t e m s
○ Database Design
FIN 307 ■
■
Entity-Relationship Model
The Relational Data Model
■ Transform ER schema to relational schema
- ER Schema Design
- ER Schema to Relational Schema Transformation
Running - Table Normalization
P ro je c t - Application Implementation Using MySQL
Table Population and Index Creation
Functionality Implementation
Web interface with PHP