Professional Documents
Culture Documents
Top 25 Database Testing Interview Questions
Top 25 Database Testing Interview Questions
Following are frequently asked SQL Interview Questions for freshers as well as experienced testers.
Database Testing is also known as Backend Testing. Database Testing is segmented into four different
categories.
Constraint Check
Validation of a Field size
Stored procedure
Matching application field size to database
Indexes for performance based issues
In a data-table, to test the multi numbers of data, data-driven test is used. By using this it can easily replace the
parameters at the same time from different locations.
Join is used to display two or more than two table and the types of joins are:
Natural Join
Inner Join
Outer Join
Cross Join
Indexes are database objects and they are created on columns. To fetch data quickly they are frequently
accessed. Different types of indexes are:
B-Tree index
Bitmap index
Clustered index
Covering index
Non-unique index
Unique index
6) While testing stored procedures what are the steps does a tester takes?
The tester will check the standard format of the stored procedures and also it checks the fields are correct like
updates, joins, indexes, deletions as mentioned in the stored procedure.
7) How would you know for database testing, whether trigger is fired or not?
On querying the common audit log you would know, whether, a trigger is fired or not. It is in audit log where you
can see the triggers fired.
8) In data base testing, what are the steps to test data loading?
9) Without using Database Checkpoints, how you test a SQL Query in QTP?
By writing scripting procedure in VBScript, we can connect to database and can test the queries and database.
In QTP using output database check point and database check, you have to select the SQL manual queries
option. After selecting the manual queries option, enter the "select" queries to fetch the data in the database and
then compare the expected and actual.
Writing a testcases is like functional testing. First you have to know the functional requirement of the application.
Then you have to decide the parameters for writing testcases like
12) To manage and manipulate the test table what are the SQL statements that you have used in
Database testing?
The statements like SELECT, INSERT, UPDATE, DELETE are used to manipulate the table, while ALTER
TABLE, CREATE TABLE and DELETE TABLE are used to manage table.
To test database procedures and triggers, input and output parameters must be known. EXEC statement can be
used to run the procedure and examine the behaviour of the tables.
To write a testcases from requirements, you need to analyse the requirements thoroughly in terms of
functionality. Thereafter you think about the appropriate testcases design techniques like Equivalence
partitioning, Black box design, Cause effect graphing etc. for writing the testcases.Yes, the requirements
represent exact functionality of AUT.
DBMS stand for Database management system, there are different types of DBMS
Network Model
Hierarchical Model
Relational Model
DML stands for Data Manipulation Language, It is used to manage data with schema objects. It is a subset of
SQL.
17) What are DCL commands? What are the two types of commands used by DCL?
Black box testing means testing the software for the outputs on giving particular inputs. This testing is usually
performed to see if the software meets the user's requirements. There is no specific functional output expected
for running this test.
The white box testing is done to check the accuracy of code and logic of the program. This testing is done by the
programmer who knows the logical flow of the system.
Once the testing is done, QTP will generate a report. This report will show the checkpoints, system message and
error that were detected while testing. The test results window will show any mismatches encountered at the
checkpoints.
Testing the database manually involves checking the data at the back end and to see whether the addition of
data in front end is affecting the back end or not, and same for delete, update, insert etc.
23) What RDBMS stands for and what are the important RDMBS that SQL use?
RDBMS stands for Relational Database Management Systems that use SQL, and the important RDBMS that
SQL uses are Sybase, Oracle, Access ,Ingres, Microsoft SQL server etc.
24) What is performance testing and what are the bottlenecks of performance testing?
Performance testing determines the speed of the computer system performance. It includes the quantitative tests
like response time measurement. The problem in performance testing is that you always need a well-trained and
experienced man power also the tools you use are expensive.
To define database structure, a Developer uses DDL. DDL stands for Data Definition Language. The various
DDL commands include Create, Truncate, Drop, Alter, Comment and Rename.