Top 50 DBMS Interview Questions and Answers

Updated 6 Jul 2025

Asked in Arcesium

1d ago
Q. Can you design a schema for restaurant applications, similar to Zomato?
Ans.

Design a schema for a restaurant app like Zomato.

  • Create tables for restaurants, users, reviews, and orders

  • Include columns for restaurant details like name, address, cuisine type

  • Include columns for user details like name, email, and password

  • Link revie...read more

5d ago

Q. What is the difference between RDBMS and DBMS? Give examples.

Ans.

RDBMS is a type of DBMS that stores data in a structured manner using tables and enforces relationships between them.

  • DBMS is a software system that manages databases, while RDBMS is a specific type of DBMS.

  • RDBMS uses a tabular structure to store data...read more

Asked in Cognizant and 61 others

2d ago
Q. What are the different types of joins in SQL?
Ans.

Different types of joins in SQL include inner join, left join, right join, and full outer join.

  • Inner join: Returns rows when there is at least one match in both tables.

  • Left join: Returns all rows from the left table and the matched rows from the righ...read more

Asked in Arcesium

2d ago
Q. What is a transaction in the context of a Database Management System (DBMS)?
Ans.

A transaction is a logical unit of work that consists of multiple database operations that must be executed as a single, indivisible unit.

  • A transaction ensures data consistency and integrity.

  • It follows the ACID properties: Atomicity, Consistency, Iso...read more

Are these interview questions helpful?

Asked in DE Shaw

1d ago
Q. What are the objectives of normalization in database management systems?
Ans.

Normalization in database management systems aims to reduce data redundancy, improve data integrity, and optimize database performance.

  • Eliminate data redundancy by breaking down data into smaller tables

  • Reduce update anomalies by ensuring data is stor...read more

4d ago

Q. What is the difference between ADBMS and DBMS?

Ans.

ADBMS stands for Advanced Database Management System which is an extension of DBMS with additional features.

  • ADBMS has advanced features like data mining, data warehousing, and online analytical processing.

  • ADBMS is used for handling large and complex ...read more

Share interview questions and help millions of jobseekers 🌟
man with laptop

Asked in UBS

4d ago
Q. What are the different types of keys in a Database Management System (DBMS)?
Ans.

Types of keys in a DBMS include primary key, foreign key, candidate key, and super key.

  • Primary key uniquely identifies each record in a table (e.g. employee ID)

  • Foreign key links two tables together (e.g. department ID in employee table)

  • Candidate key ...read more

Asked in UBS

2d ago
Q. What are the different types of indexing in DBMS?
Ans.

Different types of indexing in DBMS include primary, secondary, clustered, non-clustered, unique, and composite indexing.

  • Primary indexing: Index based on the primary key of a table.

  • Secondary indexing: Index based on a non-primary key column.

  • Clustered...read more

4d ago
Q. What are aggregate functions in DBMS?
Ans.

Aggregate functions in DBMS are functions that operate on a set of values and return a single value as output.

  • Aggregate functions perform calculations on multiple rows to return a single result.

  • Examples include SUM, AVG, COUNT, MIN, and MAX.

  • They are ...read more

Asked in TCS

6d ago

Q. What is dbms , Sql query

Ans.

DBMS stands for Database Management System. SQL is a programming language used to manage and manipulate data in a DBMS.

  • DBMS is a software system that allows users to create, manage, and manipulate databases.

  • SQL is used to communicate with a DBMS and ...read more

DBMS Jobs

IBM India Pvt. Limited logo
Application Developer-Azure Cloud FullStack 4-8 years
IBM India Pvt. Limited
4.0
₹ 4 L/yr - ₹ 28 L/yr
(AmbitionBox estimate)
Bangalore / Bengaluru
IBM India Pvt. Limited logo
Application Developer-Google Cloud FullStack 3-6 years
IBM India Pvt. Limited
4.0
₹ 4 L/yr - ₹ 25 L/yr
(AmbitionBox estimate)
Gurgaon / Gurugram
IBM India Pvt. Limited logo
QA Test Developer 6-9 years
IBM India Pvt. Limited
4.0
₹ 16 L/yr - ₹ 35 L/yr
(AmbitionBox estimate)
Bangalore / Bengaluru

Asked in Ostello and 5 others

5d ago
Q. What is sharding?
Ans.

Sharding is a database partitioning technique to improve performance and scalability by distributing data across multiple servers.

  • Sharding involves breaking up a database into smaller, more manageable parts called shards.

  • Each shard contains a subset ...read more

Asked in Zoho

6d ago
Q. What is BCNF and why is it important in database management systems?
Ans.

BCNF stands for Boyce-Codd Normal Form, a higher level of normalization in database management systems.

  • BCNF is a stricter form of 3NF (Third Normal Form) and ensures that there are no non-trivial functional dependencies between attributes.

  • It helps in...read more

Asked in Infosys

6d ago
Q. Can you explain the different languages used in Database Management Systems (DBMS)?
Ans.

Different languages used in DBMS include SQL, PL/SQL, T-SQL, and NoSQL.

  • SQL (Structured Query Language) is the standard language for relational database management systems.

  • PL/SQL (Procedural Language/SQL) is Oracle Corporation's procedural extension f...read more

Asked in TCS

6d ago

Q. Describe the 3-Tier Architecture of DBMS.

Ans.

3-Tier Architecture of DBMS includes presentation, application, and data layers.

  • Presentation Layer: User interface for interacting with the database (e.g. web browser)

  • Application Layer: Business logic and processing of user requests (e.g. server-side...read more

Asked in Wipro

5d ago

Q. What is a foreign key in DBMS?

Ans.

A foreign key is a column or set of columns in a database table that refers to the primary key of another table.

  • A foreign key ensures referential integrity between two tables.

  • It is used to establish a relationship between two tables.

  • It helps in maint...read more

Asked in iMentus

6d ago

Q. What are views in DBMS?

Ans.

Views in DBMS are virtual tables that display data from one or more tables.

  • Views are created using SELECT statements.

  • They can be used to simplify complex queries.

  • Views can also be used to restrict access to sensitive data.

  • They do not store data thems...read more

Asked in TCS

4d ago

Q. Explain the characteristics of DBMS.

Ans.

DBMS is a software system that manages databases, providing features like data storage, retrieval, and manipulation.

  • DBMS stands for Database Management System.

  • It provides a structured way to store and organize data.

  • DBMS allows multiple users to acces...read more

Asked in SAP

2d ago
Q. Can you design an ER diagram for an online shopping portal?
Ans.

Yes, I can design an ER diagram for an online shopping portal.

  • Entities: User, Product, Order, Payment, Cart

  • Relationships: User places Order, Order contains Product, Payment for Order, User has Cart

  • Attributes: User (id, name, email), Product (id, name...read more

Asked in SAP

6d ago
Q. What would be the database design for an ATM system?
Ans.

The database design for an ATM system should include tables for users, accounts, transactions, and ATM machines.

  • Create a table for users with fields like user_id, name, pin, etc.

  • Create a table for accounts with fields like account_id, user_id, balanc...read more

Asked in TCS

1d ago
Q. What are the CRUD operations in DBMS?
Ans.

CRUD operations in DBMS refer to Create, Read, Update, and Delete operations for managing data.

  • Create: Inserting new data into the database

  • Read: Retrieving existing data from the database

  • Update: Modifying existing data in the database

  • Delete: Removing...read more

Asked in Springworks

6d ago
Q. You were given 3-4 models in a DBMS context. How did you join those models to obtain the desired result?
Ans.

To join multiple models in a DBMS, use SQL JOIN statements based on common keys.

  • Identify common keys between the models

  • Use SQL JOIN statements (INNER JOIN, LEFT JOIN, RIGHT JOIN, FULL JOIN) to combine the models based on the common keys

  • Specify the co...read more

Asked in Amazon

2d ago
Q. Can you describe the ACID properties in DBMS?
Ans.

ACID properties in DBMS ensure data integrity and consistency.

  • Atomicity: All transactions are either fully completed or fully aborted. For example, transferring money from one account to another should be completed in its entirety.

  • Consistency: The da...read more

Asked in Yodlee

6d ago
Q. What is concurrency control?
Ans.

Concurrency control is a technique used in databases to manage simultaneous access and modification of data by multiple users or processes.

  • Concurrency control ensures that transactions are executed in a way that maintains data consistency and integri...read more

Asked in Capita

2d ago
Q. What is a correlated subquery in DBMS?
Ans.

A correlated subquery is a subquery that references a column from the outer query, allowing for more complex filtering and data retrieval.

  • Correlated subqueries are executed for each row processed by the outer query.

  • They can be used to filter results ...read more

Asked in Oracle

1d ago
Q. Can you explain the different types of normalization forms in a DBMS?
Ans.

Normalization forms in a DBMS help reduce data redundancy and improve data integrity.

  • 1NF (First Normal Form) - Each column contains atomic values, and there are no repeating groups.

  • 2NF (Second Normal Form) - Meets 1NF and all non-key attributes are f...read more

Q. What are the three levels of data abstraction in a Database Management System?
Ans.

The three levels of data abstraction in a Database Management System are Physical Level, Logical Level, and View Level.

  • Physical Level: Deals with how data is stored on the storage medium. It includes details like data structures, file organization, a...read more

Asked in SAP and 3 others

4d ago
Q. What is a clustered index?
Ans.

A clustered index is a type of index that sorts and stores the data rows in the table based on their key values.

  • Defines the order in which data is physically stored in a table

  • Only one clustered index per table

  • Helps in improving the performance of que...read more

Asked in Infosys

1d ago
Q. What are the integrity rules in a Database Management System (DBMS)?
Ans.

Integrity rules in a DBMS ensure data accuracy, consistency, and reliability.

  • Constraints like primary key, foreign key, unique key enforce data integrity

  • Referential integrity ensures relationships between tables are maintained

  • Entity integrity ensures...read more

Asked in Capgemini

1d ago
Q. Explain the difference between intension and extension in a database.
Ans.

Intension refers to the attributes or properties of a concept, while extension refers to the instances or examples of that concept in a database.

  • Intension describes the characteristics or properties of a concept.

  • Extension refers to the actual instanc...read more

Asked in Myntra

3d ago
Q. What are the advantages of B+ Trees in database management systems?
Ans.

B+ Trees are advantageous in database management systems due to their ability to efficiently store and retrieve data.

  • B+ Trees have a high fanout, allowing for more keys to be stored in each node, reducing the height of the tree and improving search p...read more

1
2
3
4
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.8
 • 8.6k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Wipro Logo
3.7
 • 6.1k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
Amazon Logo
4.0
 • 5.4k Interviews
Capgemini Logo
3.7
 • 5.1k Interviews
Walmart Logo
3.6
 • 408 Interviews
Birlasoft Logo
3.6
 • 300 Interviews
SAP Logo
4.2
 • 291 Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
DBMS Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 Lakh+

Reviews

10L+

Interviews

4 Crore+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits