DBMS Introduction: COMP3311 Database Management Systems
DBMS Introduction: COMP3311 Database Management Systems
DBMS Introduction
Prof Xiaofang Zhou
+ What is a DBMS? 2
Stored data
n Oracle
n IBM DB2
n Microsoft SQL Server
n MySQL (MariaDB)
n PostgreSQL
n Microsoft Access
n dBASE
n SQLite…
+ DBMS vs File Systems 6
Logical
HKUST database
view
Physical
Files on disks/cloud
view
+ Three Levels of Abstraction 10
(described by)
View View (subschema)
(described by)
Logical view Logical schema
Schema
Data on disk 1129 John Law …… Student:
ID: integer
Name: char(10)
DBMS
program
+ Data Models 14
social-security street
account-number balance
city
name
account-number balance
A-101 500
A-201 900
A-215 700
A-217 750
+ Data Definition Language (DDL) 17
n DML in practice
n SQL
+ SQL 19
n Most
common language – used in all commercial
DBMSs
Transaction 1
Transaction 2
Conflicting read/write
+ Storage/Buffer Management 22
storage manager
n End Users
n Naïve users
n Invoke existing application programs (e.g., print monthly sales report).
n Interact with applications through a graphical user interface (GUI).
n Application programmers
n Develop applications that interact with DBMS through DML calls.
n Sophisticated users
n Issue queries either directly using a database query language (e.g.,
SQL) or via tools such as data analysis software.