Chapter 01
Chapter 01
▪ Note: The above entities and relationships are typically expressed in a conceptual
data model, such as the ENTITY-RELATIONSHIP data model (see Chapters 3, 4)
Example of a simple database
Relational model
Main Characteristics of the Database
Approach
▪ Self-describing nature of a database system:
▪ A DBMS catalog stores the description of a particular database (e.g. data structures,
types, and constraints)
▪ The description is called meta-data*.
▪ This allows the DBMS software to work with different database applications.
▪ Insulation between programs and data:
▪ Called program-data independence.
▪ Allows changing data structures and storage organization without having to change the
DBMS access programs.
▪ -----------------------------------------------------------------------------
▪ * Some newer systems such as a few NOSQL systems need no meta-data: they store the
data definition within its structure making it self describing
Example of a simplified database catalog
Main Characteristics of the Database
Approach (continued)
▪ Data Abstraction:
▪ A data model is used to hide storage details and present the users with a conceptual view of the
database.
▪ Programs refer to the data model constructs rather than data storage details
▪ Support of multiple views of the data:
▪ Each user may see a different view of the database, which describes only the data of interest to that
user.
▪ Sharing of data and multi-user transaction processing:
▪ Allowing a set of concurrent users to retrieve from and to update the database.
▪ Concurrency control within the DBMS guarantees that each transaction is correctly executed
or aborted
▪ Recovery subsystem ensures each completed transaction has its effect permanently recorded
in the database
▪ OLTP (Online Transaction Processing) is a major part of database applications. This allows
hundreds of concurrent transactions to execute per second.
Database Users
▪ First decade of the 21st century has seen tremendous growth in user generated
data and automatically collected data from applications and search engines.
▪ Social Media platforms such as Facebook and Twitter are generating millions of
transactions a day and businesses are interested to tap into this data to
“understand” the users