DBMS Notes
DBMS Notes
DBMS Notes
Systems
Data Models
Introduction to Database Management Systems (DBMS)
Relational Database Management Systems (RDBMS)
Structured Query Language (SQL)
Database Transactions
Data Centers
Cloud Services
Data Model:
A data model is a conceptual representation of how data is structured and organized
within a system. It defines the relationships between different data elements, the rules
for data manipulation, and the constraints that apply to the data.
They provide the blueprint for how data is organized and how relationships among data
elements are established.
Types of Data Models:
Hierarchical Model: Data is organized in a tree-like structure, where each child record
has only one parent.
Network Model: Similar to the hierarchical model but allows each record to have multiple
parents, creating a more flexible data structure.
Relational Model: Data is stored in tables, with relationships between tables defined by
foreign keys. This is the most widely used model in RDBMS.
Functions of a DBMS
Data Storage: DBMS stores data in a structured format, using tables, schemas, and
databases to organize data efficiently.
Data Retrieval: Allows users to retrieve data efficiently through queries, making it
accessible for analysis or processing.
Data Update: Supports adding new data, modifying existing data, and deleting outdated
data, ensuring the database remains current.
Data Administration: Offers tools for backup and recovery, security management, and
performance monitoring to maintain data integrity and availability.
Data Integrity: Ensures accuracy and consistency of data through integrity constraints.
Data Independence: Allows changes to the data storage and structure without altering
the application programs that access the database.
It organizes data into tables (relations), which consist of rows (records) and columns
(attributes).
Key Features of RDBMS:
Table-based Structure: Data is stored in tables, making data management and querying
efficient.
Data Manipulation: Utilizes Structured Ǫuery Language (SǪL) for data manipulation and
querying.
Data Integrity: Ensures data accuracy and consistency through integrity constraints like
primary keys and foreign keys.
ACID Transactions: Supports transactions that are Atomic, Consistent, Isolated, and
Durable to ensure data reliability.
Advantages of RDBMS
Flexibility: Ability to handle a wide range of data types and complex queries.
Scalability: Can scale to handle large amounts of data and concurrent users
efficiently.
Security: Provides robust data security features, including access controls and
encryption.
Maintenance: Easier to maintain due to its structured format and widespread support
tools.
Examples of RDBMS:
Definition of SǪL
Core Functions of
SǪL Advantages of
SǪL
Data Ǫuerying: Retrieving data from a database using the SELECT statement, filtering
results with conditions.
Data Manipulation: Inserting (INSERT), updating (UPDATE), and deleting (DELETE) records
in a database.
Data Definition: Creating (CREATE), altering (ALTER), and dropping (DROP) database
objects like tables and views.
Data Control: Managing access to the database and its objects through permissions
(GRANT and REVOKE).
Advantages of SQL
Standardization: SǪL is widely accepted and used, making skills transferable across
different database systems.
User-Friendly Syntax: SǪL syntax is readable and similar to natural language, making it
easier to learn and use.
Powerful and Versatile: Capable of handling complex queries and database transactions,
making it suitable for a wide range of data management tasks.
Database Transaction
Transactions are crucial for maintaining the integrity and consistency of the database.
They ensure that even in the case of errors or failures, the data remains accurate and
reliable.
Data Centers
A data center is a facility composed of networked computers and storage used to
organize, process, store, and disseminate large amounts of data.
Data centers are critical assets for enterprises and cloud service providers.
Computing Resources: Servers that perform data processing and applications execution.
Storage Systems: Devices for storing data, such as SAN (Storage Area Network) and NAS
(Network Attached Storage).
Networking: Infrastructure for connecting data center components internally and to the
internet or other networks.
Power and Cooling Systems: Essential for maintaining optimal operating conditions and
ensuring the reliability of hardware components.
Types of Data Centers
Enterprise Data Centers: Owned and operated by companies and located on their
premises.
Colocation Data Centers: Where companies can rent space for servers and other
computing hardware.
Cloud Data Centers: Operated by cloud service providers offering cloud services over
the internet.
Data centers are the backbone of IT operations, supporting business applications, data
storage, management, and dissemination.
They play a crucial role in disaster recovery, data backup, and ensuring data availability.
Cloud Services
Cloud services refer to a wide range of services delivered on demand to companies and
customers over the internet.
to Provide easy
affordable access to applications and resources, without the need for internal
infrastructure or hardware.
Platform as a Service (PaaS): Offers hardware and software tools over the internet,
typically for application development.
Software as a Service (SaaS): Delivers software applications over the internet, on a
subscription basis, accessible through a web browser.
Accessibility: Services can be accessed from anywhere, facilitating remote work and
global collaboration.
Disaster Recovery: Enhances data backup and disaster recovery capabilities through data
replication in multiple locations.
Public Cloud: Services are delivered over the public internet and shared across
organizations.
Private Cloud: Services are maintained on a private network, offering more control and
security.
Hybrid Cloud: Combines public and private clouds, allowing data and applications to be
shared between them.
Summary of OS:
Summary of DBMS: