DBMS Interview Questions
DBMS Interview Questions
1) What is DBMS?
DBMS is a collection of programs that facilitates users to create and maintain a database. In
other words, DBMS provides us an interface or tool for performing different operations such
as the creation of a database, inserting data into it, deleting data from it, updating the data,
etc. DBMS is a software in which data is stored in a more secure way as compared to the file-
based system. Using DBMS, we can overcome many problems such as- data redundancy,
data inconsistency, easy access, more organized and understandable, and so on. There is the
name of some popular Database Management System- MySQL, Oracle, SQL Server,
Amazon simple DB (Cloud-based), etc.
2) What is a database?
A Database is a logical, consistent and organized collection of data that it can easily be
accessed, managed and updated. Databases, also known as electronic databases are structured
to provide the facility of creation, insertion, updating of the data efficiently and are stored in
the form of a file or set of files, on the magnetic disk, tapes and another sort of secondary
devices. Database mostly consists of the objects (tables), and tables include of the records and
fields. Fields are the basic units of data storage, which contain the information about a
particular aspect or attribute of the entity described by the database. DBMS is used for
extraction of data from the database in the form of the queries.
9) What is RDBMS?
RDBMS stands for Relational Database Management Systems. It is used to maintain the data
records and indices in tables. RDBMS is the form of DBMS which uses the structure to
identify and access data concerning the other piece of data in the database. RDBMS is the
system that enables you to perform different operations such as- update, insert, delete,
manipulate and administer a relational database with minimal difficulties. Most of the time
RDBMS use SQL language because it is easily understandable and is used for often.
51) What is the difference between a shared lock and exclusive lock?
Shared lock: Shared lock is required for reading a data item. In the shared lock, many
transactions may hold a lock on the same data item. When more than one transaction is
allowed to read the data items then that is known as the shared lock.
Exclusive lock: When any transaction is about to perform the write operation, then the lock
on the data item is an exclusive lock. Because, if we allow more than one transaction then
that will lead to the inconsistency in the database.