Please enable JavaScript.
Coggle requires JavaScript to display documents.
Database - Coggle Diagram
Database
Intro & Concepts
Types of Database
- Single-user
- Desktop : on personal computer
- Multi-user
- Workgroup : many user many database
- Enerprise : supports big organization
classified by use
- Transaction : TPS day-to-day
- Data warehouse : store historical data
-
-
Database Systems
- File system - เก็บแยกกัน
- Database
Environment
- Hardware
- Software
- People
- Procedures - ขั้นตอนการใช้ข้อมูล
- Data - ชุดของข้อเท็จจริงที่แสดงในฐานข้อมูลเรียกว่า Universe of Discourse (UOD)
File System
Type of Data
- Text
- Formatted Data : อักษร ตัวเลข Varchar = Array
- Image
- Audio/Sound
- Video
Type of File
8 type
- Master File (แฟ้มข้อมูลหลัก) - ROM
- Transaction File (แฟ้มข้อมูลรายการเปลี่ยนแปลง) - TPS
- Table File
- Sort File
- Document file / Report File
- Archival File (แฟ้มประวัติ)
- Table Look up File (แฟ้มตารางอ้างอิง) - รหัสไปรษณีย์ เลขห้องเรียน
- Audit File (แฟ้มเพื่อการตรวจสอบ) - Log file
File Organization
- Sequential File Organization - ทำงานตามลำดับ
- Indexed File Organization - B Tree
- Hashing File Organization (Directed File) - key word
-
Database Model & Arch
Categories of Data Model
- High-level / Conceptual data models - Users
- Object-oriented models
- concepts : entities, attributes, relationships
- Low-level / Physical data models
- how data store : index, access path
- Compromise: Representational data models - DBMS
- Relational Data model, Network model, Hierarchical model
Database Architecture
DBTG - 1971
- Schema - System View
- Subschema - User View
-
DBMS
DBMS Arch.
1-Tier - Client, Server, Database all reside on the same machine
2-Tier - MS Access
- Presentation Layer - client
- Data - on sever
3-Tier - popular
- Presentation Layer
- Application Layer - server
- Database Sever
DBMS Languages
- Data definition language (DDL)
- Storage definition language (SDL)
- View definition language (VDL)
- Data manipulation language (DML)
DBMS Utilities
- Loading data file
- Backup
- Database storage reorganization change file organization
- Performance monitoring for DBA
Relational Algebra
- Operands - variables/values/attributes/instance/column
- Operators - symbols
- σ : Selection - select row/record/tuple
- Π : Projection - select column
- ∪ : Union - รวม ตัดตัวซ้ำ
- ∩ : Intersection - เอาตัวที่ตรงกัน
- – : Set Difference - อยู่ใน L ไม่อยู่ใน R
- X : Cartesian Product/Times - แต่ละ L ต้องคู่กับ แต่ละ R
- ⋈ : Natural Join
- / : Divide
-