Relational Database Management Systems - 2
Relational Database Management Systems - 2
|
A database management system (DBMS) is system software that allows users to create, store, retrieve,
and run queries on data stored in a database. It acts as an interface between an end-user or an
application and a database.
Computers
Applications
Interaction is through
built-in workloads for
specific functions
Popular database management systems include MySQL,
SQLite, SQL Server, PostgreSQL, Oracle database, etc.
2
Database concepts
|
The client-server architecture is the framework in which the DBMS lives. The clients are
represented by computers and applications while the server is where the database and the
DBMS live.
Server Computers
Client
Database DBMS
Internet
or service (i.e. data
Applications
manipulation) to one or more
clients and can live anywhere in
the world as long as there is
access through the Internet.
3
Database concepts
Advantages Disadvantages
4
Database concepts
Incorporate security measures to protect data from Implement various constraints, ensuring that data
unauthorised access, manipulation, or breaches. remains accurate, consistent, and reliable.
02. Data manipulation and storage 05. Data sharing and collaboration
Allow users to perform operations such as inserting, Enable multiple users to access and work with the
deleting, and modifying records. They manage the same data concurrently ensuring data consistency.
allocation of storage space, efficient storage
mechanisms, and data file management.
Allow for regular backups of the database which can Handle increasing volumes of data and growing user
be used to restore data in case of system failures, demands. Scalability options include partitioning or
data corruption, or other unexpected events. clustering, to distribute and manage data across
multiple servers.
5
Database concepts
| Database management systems can be categorised based on various criteria such as the
number of users or the data model. The most common types include:
Data are organised in a tree-like structure, where each parent node or record is
01. ●
linked to one or more child nodes, forming a parent-child relationship.
Hierarchical DBMS ● For example: IBM's Information Management System IMS
Data are organised into tables consisting of rows and columns, where each
03. ●
table represents an entity or a relationship between entities.
Relational DBMS ● For example: Oracle, MySQL, Microsoft SQL Server, PostgreSQL, SQLite
6
Database concepts
| Relational database management systems RDBMSs are the most widely used DBMSs because
of their efficiency in data standardisation, querying, and relationships.
7
Database concepts
|
CRUD is an acronym that represents the four
basic operations (create, read, update, delete)
that can be performed on data within an RDBMS.
● Enables the retrieval of data from database tables using SQL statements such as
Read SELECT.
● The RDBMS executes the query and retrieves the matching data.
● Enables permanent removal of records from the database tables using SQL
DELETE statements.
Delete
● Verifies constraints and deletes the matching records from the table, permanently
removing them from the database.
Database concepts
| Relational database management systems should have ACID properties which ensure data validity and
compliance. ACID is an acronym for atomicity, consistency, isolation, and durability.
10
Database concepts
A Atomicity
delete data) are treated as a single unit.
● Meaning either the entire query is executed successfully if run, or none of it is
executed.
C Consistency
predictable ways.
● This guarantees that errors or corruption in our data do not result in unintended
consequences that compromise the integrity of the database table.
I Isolation
not interfere with or affect one another.
● Each query request can occur as though it were occurring one by one, even
though they are simultaneously occurring.
D
● Guarantees that modifications made to our data through successfully executed
Durability transactions will be permanently saved.
● This will remain the case in the event of a system failure.