DBMS Interview Questions (Codeofgeeks) PDF
DBMS Interview Questions (Codeofgeeks) PDF
INTERVIEW
QUESTIONS
Most asked Interview Questions
BY : CODE OF GEEKS
CODE OF GEEKS
SET 1 – Q1 – Q5
Q. What is Data ?
A. Data refers to raw facts and figures that can be recorded.
Q. What is Database ?
A. Database refers to the collection of interrelated and coherent data.
Q. Explain DBMS ?
A. DBMS stands for Database Management System. It is a software
package designed to define, manipulate, retrieve and manage data in
database.
Q. Why DBMS ?
A. To make information easy to access and protected, we use database
management systems. DBMS is important because it manages the data
efficiently and allow users to perform multiple tasks on it with the ease.
SET 2 – Q6 – Q10
Q. Explain RDBMS ?
A. RDBMS stands for Relational Database Management System. It
arranges information into allied rows and columns. RDMS is an information
management system which is oriented on a data model. RDBMS Example
systems are SQL Server, Oracle, MySQL, MariaDB and SQLite.
Q. Explain ER Model ?
A. This model is based on the perception of real world that consists of
collection of basic entities and relationship among these objects. It is the
graphical representation of the database.
Q. What is a Tuple ?
A. A single row of a table, which contains a single record for that relation is
called a tuple.
Q. What is Subquery ?
A. Subquery is a query within query.
For example – select * from students where marks = ( select max(marks)
from students);
Q. What is Normalization ?
A. Normalization refers to the decomposition of relation. It is required to
remove data anomalies, data redundancy and data inconsistency.
Normalization of a database increases more restrictions on it.
Most commonly used normal forms are :
First Normal Form
Second Normal Form
Third Normal Form
Boyce & Codd Normal Form
Q. What is 2 NF ?
A. A relation is said to be in 2 NF, if it satisfies following rules :
1. It is in 1 NF.
2. Every non-prime attribute is fully functionally dependent on the primary
key.
Q. Explain BCNF ?
A. BCNF is Boyce-Codd Normal Form. It is considered to be the advanced
version of 3 NF. Hence it is also refered to as 3.5 NF. A relation is said to
be in BCNF, if it satisfies following rules :
1. It is in 3NF.
2. For every functional dependency P->Q, P should be the super key of the
table.
Q. What is Denormalization ?
A. It is the reverse process of Normalization. It is the process of trying to
improve the readability of the database by grouping data. Denormalization
is also used for speeding up the performance.
Q. Explain Trigger ?
A. Triggers are defined as special kind of stored programs, which are
automatically executed whenever a specific operation occurs in the
database server.