Difference between Database Testing and ETL Testing | SQL queries for ETL/Data Base Testing
- The main Objective of Database testing is check if the data is following the rules/standards defined in the Data Model.
- In Database testing , Data is organised in the database in the form of tables.
- DB testing includes verifying the components of database under test like schema, Functions, Stored Procedures, triggers, tables, underlying data, Performance etc.
- The main Objective of ETL testing is to check if the data moved properly as expected.
- ETL Testing covers testing of all these three steps involved in the ETL as well as testing the target database where in the data is loaded.
We will learn below topics in this article
Difference between Database testing and ETL Testing
|Extraction, Transform and Loading for BI Reporting
|Data validation and Integration
|Systems with historical data
|Systems with more of transactional data
|OLAP database for historical data
|OLTP database for transactional data.
|Denormalized data with a lot of indexes and aggregation
|Normalized data consisting of a lot of joins.
|Examples of tools
|read-only option is used
|create, read, update, and delete operations are performed
|Data size used is small.
SQL Queries for Database Testing/ETL Testing
Below are the top SQL queries/Concepts used in ETL testing.
Not Null Constraint
Primary Key Constraint
Foreign Key Constraint
SQL Sorting (Order By)
SQL Group By
SQL Aggregate Function
Left Outer Join
RIGHT Outer Join
Independent Sub Queries
Correlated Sub Queries