dbms interview question
dbms interview question
Here are some common DBMS (Database Management System) interview questions
along with their answers:
1. **What is DBMS?**
- **Answer**: A Database Management System (DBMS) is software that interacts with the
user, applications, and the database itself to capture and analyze data. It provides a
systematic way to create, retrieve, update, and manage data.
5. **What is normalization?**
- **Answer**: Normalization is the process of organizing data to minimize redundancy. It
involves dividing a database into two or more tables and defining relationships between the
tables. The main normal forms are:
- 1NF (First Normal Form)
- 2NF (Second Normal Form)
- 3NF (Third Normal Form)
- BCNF (Boyce-Codd Normal Form)
7. **What is indexing?**
- **Answer**: Indexing is a technique used to optimize the performance of a database by
minimizing the number of disk accesses required when a query is processed. Indexes can
be created using one or more columns of a database table.
8. **What is SQL?**
- **Answer**: SQL (Structured Query Language) is a standard programming language
used to manage and manipulate relational databases. It includes commands such as
SELECT, INSERT, UPDATE, DELETE, and CREATE.
Certainly! Here are more advanced and technical DBMS interview questions with their
answers:
21. **What are database locks, and what types are there?**
- **Answer**: Database locks are mechanisms to manage concurrent access to database
resources, ensuring data integrity and consistency. Types include:
- **Shared Lock (S)**: Allows concurrent read access but prevents writes.
- **Exclusive Lock (X)**: Prevents both read and write access by others.
- **Update Lock (U)**: Used to prevent deadlock situations during updates.
28. **What are materialized views, and how do they differ from regular views?**
- **Answer**: Materialized views are views that store the result of the query physically,
providing faster access to data compared to regular views which always compute the data
dynamically. They are used to enhance performance by storing precomputed results.
These questions cover a broader range of DBMS concepts, including advanced features and
techniques used in managing and optimizing databases.