RDBMS Notes
RDBMS Notes
1. Define Data?
Data is a collection of raw facts and figures related to an
object, such as a person, organization, or event. Data can
be in the form of text, numbers, images, sounds, or
videos.
2. Define Information?
Information is processed data that provides useful
meanings. It is the output of data processing and helps in
decision-making.
3. Define DBMS?
DBMS (Database Management System) is a software tool
used to create, manage, and retrieve data in a database
efficiently and conveniently.
4. Characteristics of DBMS?
Provides security and removes redundancy
Self-describing and supports data abstraction
Supports multi-user environment
Allows sharing of data and multiple views
Follows ACID properties (Atomicity, Consistency,
Isolation, Durability)
8. Do we need scalability?
Yes, scalability is important to handle growing amounts
of data and users. A good database model should
support horizontal or vertical scaling without
performance loss.
1. Define Tables.
A table is a collection of data arranged in rows and
columns. Each row is a record, and each column is a field
(attribute).
4. Define Entity.
An entity is any real-world thing like a person, place, or
object about which data is stored in a database.
5. Define Attributes.
Attributes are the properties or details of an entity. For
example, for a student, attributes could be Name, Roll
Number, and Age.
1. Define Normalization.
Normalization is the process of organizing data into
simpler and better database structures. It helps avoid
data repetition (redundancy) and keeps the data
consistent.
9. Why do we do 2NF?
We apply Second Normal Form (2NF) to remove partial
dependencies and make sure all non-key fields depend
fully on the whole primary key.
3. What is DDL?
DDL (Data Definition Language) is used to define or
change the structure of a database. Examples: CREATE,
ALTER, DROP.
4. What is DML?
DML (Data Manipulation Language) is used to manage
data in the database like adding, editing, and deleting
records. Examples: INSERT, UPDATE, DELETE.
6. Define DCL.
DCL (Data Control Language) controls access to data in a
database. Examples: GRANT (give access) and REVOKE
(remove access).
7. What is Join?
Join is used to combine rows from two or more tables
based on a related column between them.
1. Define ER Modeling.
ER (Entity Relationship) modeling is a method to design
the logical structure of databases using diagrams. These
diagrams include entities, their attributes, and
relationships.
2. What is Entity?
An entity is any real-world object (like a person, place, or
event) that we store data about in a database.
1. Define transaction.
A transaction is a group of tasks that act as a single unit
of work. It must be either fully completed or not done at
all—no partial completion is allowed.
2. Define consistency.
Consistency means a transaction must leave the
database in a valid state, following all rules and
constraints.
6. Define atomicity.
Atomicity ensures that all operations in a transaction are
completed; if one fails, all are undone.
9. Define isolation.
Isolation ensures that concurrent transactions do not
affect each other. One transaction's changes are not
visible to others until it finishes.