Q. 17: Which SQL statements can be used in Database Testing?
All DDL, DML, DCL, and TCL statements of SQL can be used in database testing,
DDL (Data Definition Language): All statements related to this can be used in defining the
database structure or schema.
Statements: CREATE, ALTER, DROP, TRUNCATE, COMMENT, and RENAME
DML (Data Manipulation Language): All statements related to this can be used for
managing data within schema objects.
Statements: SELECT, INSERT, UPDATE, DELETE, MERGE, CALL, EXPLAIN PLAN, and LOCK
TABLE.
DCL (Data Control Language): GRANT Statement and REVOKE Statement.
TCL (Data Manipulation Language): All statements related to this can be used to manage
the changes made by DML statements. Using TCL, statements can be grouped together into
logical transactions.
Statements: COMMIT, SAVEPOINT, ROLLBACK, and SET TRANSACTION.
Q. 18: In database testing, how to do the data load testing?
For data load testing,
You need to have knowledge about source database (data tables, columns,
associated constraints, data types) and destination database (data tables, columns,
data types, and constraints).
You need to check the compatibility between source database and destination
database via the DTS package.
You need to Open corresponding DTS package in SQL Enterprise Manager and run
the DTS package (If you are using SQL Server).
Then you need to compare the column's data of Source and the Target.
You have to check the number to rows of Source and Target.