Dmbs Notes
Dmbs Notes
Dmbs Notes
popular commercial
database which is used in
A Database stores a lot of critical information to access data quickly and
securely.
The client handles the user interface and basic processing, while the
server manages the database and more complex application logic.
It verifies your cart, calculates the total, and communicates with the
database to update inventory and store the order details.
Each external schema defines a specific view of the data tailored to the
needs of a particular user or application.
It's like upgrading the database engine without requiring users to learn a
new way to interact with the employee records.
The provision of the functionality that we expect of a good DBMS
makes the DBMS an extremely complex piece of software.
Failure to understand the system can lead to bad design decisions, which can
have serious consequences for an organization.
For example, a single-user DBMS for a personal computer may only cost $100.
If you add a new feature to a game app, you don't want it to break just
because you got a new phone.
Similarly, in a DBMS with logical data independence, you can modify the
way data is organized or add new data structures without impacting the
applications that use the database.
Example: In a DBMS with physical data independence, you might decide to switch
from one type of storage system to another for better performance.
Users and applications accessing the data won't notice this change, as the
interaction remains the same.
A database administrator, or DBA, is responsible for maintaining, securing, and
operating databases and also ensures that data is correctly stored and
retrieved.
In addition, DBAs often work with developers to design and implement new
features and troubleshoot any issues.
A DBA must have a strong understanding of both technical and business needs.
DBAs now perform more strategic tasks, such as data analytics, user experience design, and
cybersecurity.
DBAs often work directly with users and business leaders on developing new ways to use
data and software to automate processes, reduce costs, and stay competitive.
In the past, having strong technical skills was the most important requirement.
Instead, DBAs need to communicate and collaborate with users to understand their needs
and business environment.
They also need to work with other teams, such as DevOps, to help deliver software that
will solve business problems.
In a Relational Database Management System (RDBMS), data is organized
using a relational data structure.
This structure is based on tables, where data is stored in rows and columns.
A relationship in DBMS is the way in which two or more data sets are linked,
Instances, in the context of a database, refer to the actual data stored in the
database at a particular moment.
In the context of foreign keys, it means that a foreign key in one table must
match the primary key value in another table, ensuring that relationships
between tables are valid.
Entity integrity ensures that each row (entity) in a table has a unique and non-
null primary key.
It means that the primary key must have a value (not null), and no two rows
can have the same primary key value.
The term "entity integrity" is often used to emphasize the holistic nature of
maintaining the integrity of the entire record, not just the primary key column.
data model is a conceptual representation of how data is
structured, stored, and accessed in a database.
Notice that all rows from the EMPLOYEE table are included in the result,
and for rows where there is no match in the SALARY table, NULL values are
included for the Salary column.
This illustrates the difference between a natural join, which only includes
matching rows, and an outer join, which includes all rows from one table
Returns all rows from the
right table and matching
It describes what data to retrieve from the
database by using variables, quantifiers, and
predicates to express the desired properties of
the tuples in the result.
we want to retrieve the names of all students who are older than 20 years old.
Each student is enrolled in a specific course, so the
course is functionally dependent on the student's name.
Transactions should only read data that's been fully updated and
committed by other transactions.
suitable for scenarios where the data items are relatively large and
transactions tend to access most or all of the data structure at
once, reducing the likelihood of conflicts between transactions.