+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

DBMS Interview Questions and Answers

1
What is database or database management systems (DBMS)?

Database provides a systematic and organized way of storing, managing and retrieving from
collection of logically related information.
Secondly the information has to be persistent, that means even after the application is closed
the information should be persisted.
Finally it should provide an independent way of accessing data and should not be dependent on the application to access the information.

2
What is database?

A database is a logically coherent collection of data with some inherent meaning, representing some aspect of real world and which is designed, built and populated with data for a specific purpose.

3
How many types of database languages are?

There are four types of database languages:

  • Data Definition Language (DDL) e.g. CREATE, ALTER, DROP etc.
  • Data Manipulation Language (DML) e.g. SELECT, UPDATE, INSERT etc.
  • DATA Control Language (DCL) e.g. GRANT and REVOKE.
  • Transaction Control Language (TCL) e.g. COMMIT and ROLLBACK.
4
Can you explain the between clause in DBMS?

Below SQL selects employees born between '01/01/1995' AND '01/01/1978' as per mysql
SELECT * FROM wbEmployee WHERE DOB BETWEEN '1995-01-01' AND '2011-09-28'

5
What is an attribute?

It is a particular property, which describes the entity.

6
What is stored procedure?

A stored procedure is a named group of SQL statements that have been previously created and stored in the server database.

7
What's the difference between file and database? Can files qualify as a database?

Main difference between a simple file and database that database has independent way (SQL) of accessing information while simple files do not File meets the storing, managing and retrieving part of a database but not the independent way of accessing data. Many experienced programmers think that the main difference is that file can not provide multi-user capabilities which a DBMS provides. But if we look at some old COBOL and C programs where file where the only means of storing data, we can see functionalities like locking, multi-user etc provided very efficiently. So it’s a matter of debate if some interviewers think this as a main difference between files and database accept it… going in to debate is probably loosing a job.

8
What is a Database system?

The database and DBMS software together is called as Database system.

9
What is normalization?

Normalization is a process of analyzing the given relation schemas according to their functional dependencies. It is used to minimize redundancy and also minimize insertion, deletion and update distractions.

10
What is the SQL " IN " clause?

SQL IN operator is used to see if the value exists in a group of values. For instance the below
SQL checks if the Name is either 'David' or 'Craig' SELECT * FROM wbEmployee WHERE name IN ('David','Craig') Also you can specify a not clause with the same. SELECT * FROM wbEmployee WHERE age NOT IN (30,25)

11
What is Weak Entity set?

An entity set may not have sufficient attributes to form a primary key, and its primary key compromises of its partial key and primary key of its parent entity, then it is said to be Weak Entity set.

12
What is data independence?

Data independence specifies that the application is independent of the storage structure and the access strategy of data. It means the ability to modify the schema definition in one level should not affect the schema definition in the next higher level.

There are two types of data independence:

  • Physical data independence
  • Logical data independence
13
What is SQL?

SQL stands for Structured Query Language.SQL is an ANSI (American National Standards
Institute) standard computer language for accessing and manipulating database systems. SQL
statements are used to retrieve and update data in a database.

14
What are the advantages of DBMS?
  1. Redundancy is controlled.
  2. Unauthorised access is restricted.
  3. Providing multiple user interfaces.
  4. Enforcing integrity constraints.
  5. Providing backup and recovery.
15
What is Denormalization?

Denormalization is the process of boosting up database performance and adding of redundant data which helps to get rid of complex data.

16
What is order by clause in DMBS?

ORDER BY clause helps to sort the data in either ascending order to descending order.
Ascending order sort query
SELECT name,age FROM pcdsEmployee ORDER BY age ASC
Descending order sort query
SELECT name FROM pcdsEmployee ORDER BY age DESC

17
What is an Extension of entity type?

The collections of entities of a particular entity type are grouped together into an entity set.

18
What is entity?

Entity is a set of attributes in a database.

19
What’s difference between DBMS and RDBMS?

DBMS provides a systematic and organized way of storing, managing and retrieving from
collection of logically related information. RDBMS also provides what DBMS provides but above that it provides relationship integrity. So in short we can say
RDBMS = DBMS + REFERENTIAL INTEGRITY
These relations are defined by using “Foreign Keys” in any RDBMS.Many DBMS companies claimed there DBMS product was a RDBMS compliant, but according to industry rules and regulations if the DBMS fulfills the twelve CODD rules it’s truly a RDBMS. Almost all DBMS (SQL SERVER, ORACLE etc) fulfills all the twelve CODD rules and are considered as truly RDBMS.

20
What are the disadvantage in File Processing System?
  1. Data redundancy and inconsistency.
  2. Difficult in accessing data.
  3. Data isolation.
  4. Data integrity.
  5. Concurrent access is not possible.
  6. Security Problems.
21
What is functional Dependency?

Functional Dependency is the starting point of normalization. It exists when a relation between two attributes allows you to uniquely determine the corresponding attribute's value.

22
Can you explain Insert, Update and Delete query in DBMS?

Insert statement is used to insert new rows in to table. Update to update existing data in the
table. Delete statement to delete a record from the table. Below code snippet for Insert, Update and Delete :-
INSERT INTO wbEmployee SET name='maxwell',age='22';
UPDATE wbEmployee SET age='22' where name='maxwell';
DELETE FROM wbEmployee WHERE name = 'david';

23
What is an Entity set?

It is a collection of all entities of particular entity type in the database.

24
What is E-R model?

E-R model is a short name for Entity Relationship model. This model is based on real world. It contains basic objects (known as entities) and relationship among these objects.

25
How many types of relationship exist in database designing?

There are three major relationship models:-
One-to-one
One-to-many
Many-to-many

26
What is extension and intension?
  • Extension: It is the number of tuples present in a table at any instance. This is time dependent.
  • Intension: It is a constant value that gives the name, structure of table and the constraints laid on it.
Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.
FOLLOW US