DBMS
DBMS
1. What is DBMS?
A software system that enables the creation, management, and manipulation of databases.
2. What is RDBMS?
A type of DBMS that stores data in tables with rows and columns, enforcing relationships between data
entities.
3. What is SQL?
Structured Query Language used for accessing and manipulating relational databases.
4. What is a table?
5. What is a field?
6. What is a record?
A field in one table that uniquely identifies a row in another table, establishing a relationship between the
two tables.
A set of one or more attributes that, taken collectively, uniquely identify a record in a table.
SQL Queries and Commands
DELETE removes specified rows and can be rolled back; TRUNCATE removes all rows and cannot be rolled
back.
WHERE filters rows before grouping; HAVING filters groups after aggregation.
Operations that combine rows from two or more tables based on related columns.
Returns all records from the left table and matched records from the right table.
Returns all records from the right table and matched records from the left table.
Returns all records when there is a match in either left or right table.
The process of organizing data to reduce redundancy and improve data integrity.
First Normal Form; ensures that the table has only atomic (indivisible) values.
Second Normal Form; meets 1NF and all non-key attributes are fully functionally dependent on the primary
key.
Third Normal Form; meets 2NF and all attributes are only dependent on the primary key.
Boyce-Codd Normal Form; a stricter version of 3NF where every determinant is a candidate key.
Ensures that a foreign key value always points to an existing, valid record in the parent table.
Atomicity, Consistency, Isolation, Durability; properties that ensure reliable processing of database
transactions.
Ensures that all operations within a transaction are completed; if not, the transaction is aborted.
Ensures that a transaction brings the database from one valid state to another.
Ensures that the results of a transaction are permanently stored in the system.
Mechanisms to ensure that database transactions are performed concurrently without violating data
integrity.
A situation where two or more transactions are waiting indefinitely for each other to release locks.
A point in the transaction log where all previous transactions are committed to the database.
Advanced Concepts
An index where the order of the rows in the database corresponds to the order of the index.
A precompiled collection of one or more SQL statements stored on the database server.
A set of SQL statements that automatically execute in response to certain events on a particular table.
A database object used to retrieve, manipulate, and navigate through a result set row by row.
The process of hiding the complexities of the database and showing only the necessary information to the
user.
DBMS offers data abstraction, consistency, and security, while file systems do not provide such features.
52. What is a schema?
The capacity to change the schema at one level without affecting the schema at the next higher level.
54. What is the difference between logical and physical data independence?
An artificial key assigned to uniquely identify each record when no natural primary key exists.
Problems like update, delete, and insert anomalies due to poorly designed schemas.
DDL (Data Definition), DML (Data Manipulation), DCL (Data Control), and TCL (Transaction Control).
COMMIT saves the transaction; ROLLBACK undoes changes made in the transaction.