Professional Documents
Culture Documents
Lecture 02
Lecture 02
https://www.youtube.com/watch?v=QpdhBUYk7Kk
https://www.youtube.com/watch?v=-CuY5ADwn24
Objectives
2
Database Defined
• Database
– A collection of data stored on a computer using a
database management system (DBMS)
• DBMS
– Application that allows others to search stored data
– Goal: provide means to manipulate, analyze, store,
and retrieve information
• Example: school library
– Librarian (on-campus library) or Web site (online
library) acts as DBMS
3
Database Structure Components
• Method of storing information in a database
– Depends on database type
• Common components of digital database
management applications
– Tables
– Keys
– Queries
4
Tables
Fields
• Foreign key
– Field within a table containing a label used to build a
relationship between two tables
– Often refers to a unique entry or primary key in a
different table
• Other keys
– Secondary or alternative key
– Sort or control key
Use of foreign keys
9
Queries
10
Database Models
11
Flat Model
12
Flat Model (cont’d.)
13
Hierarchical Model
14
Hierarchical database model
15
Network Model
16
17
Relational Database
18
Relational database model
19
Object-Oriented Databases
20
Object-Relational Database
21
Relationships
22
Relationships (cont’d.)
23
Entity relationship types
24
Database Management Systems
26
Microsoft SQL
27
MySQL
28
Database Similarities and Evaluation
Criteria (1/2)
• Read consistency
– Refers to accuracy and reliability of data within a
database
– Depends on database ability to process and commit
transactions in a timely manner
Database Similarities and Evaluation
Criteria (2/2)
• Query Management: Steps taken by a database
management application to process a user query
- Retrieving
- Parsing
• Analyzing query construction for correct syntax and
Semantics
- Optimizing
• Process of locating most efficient way to retrieve
requested data
Queries can be processed individually or in parallel
(distributed)
30
Summary
41
Summary (cont’d.)