API & Backend · Beginner – Intermediate · 💎 Premium
SQL & Database Testing for QA Engineers
Hands-on MySQL 8 for testers: query, validate and automate data checks on a realistic e-commerce database, from SELECT to CI.
10Lessons
69Lab tasks
14hDuration
1Capstone + certificate
About this course
A practical, lab-driven SQL course built for Indian QA job seekers and working testers. You build one realistic MySQL 8 e-commerce database with nine planted data defects and use it in every lesson to find test data, verify UI and API results, validate migrations, test transactions, stored procedures and triggers, and automate checks in Java and Python. The course ends with a portfolio capstone and covers the SQL questions asked in service and product company interviews.
What you will be able to do
- Set up MySQL 8 with DBeaver (or DB Fiddle/SQLite) and load a realistic e-commerce test database.
- Write precise SELECT, aggregation, JOIN, subquery, CTE and window-function queries to verify application data.
- Solve the classic SQL interview questions: Nth highest salary, duplicates, latest record per group, anti-joins.
- Test constraints, transactions, rollback and isolation, and verify ACID behaviour with negative tests.
- Validate data integrity, referential integrity, migrations/ETL, UI-vs-DB values, stored procedures and triggers.
- Automate database checks with JDBC + TestNG and Python + pytest, integrated with UI/API tests and GitHub Actions.
- Diagnose slow queries with EXPLAIN and indexes, and validate MongoDB documents with queries and schema validation.
- Publish a portfolio-ready DB testing project with a test plan, 30-check validation suite and defect reports.
Syllabus
-
▶
1. Databases for Testers: MySQL 8, DBeaver & the Practice Shop DB Understand how relational databases back every application you test, install MySQL 8 with DBeaver (or use DB Fiddle/SQLite), and load the e-commerce practice schema used throughout the course.
-
🔒
2. SELECT Essentials: Filtering, Sorting, Patterns & NULLs Write precise SELECT queries with WHERE, ORDER BY, LIMIT, LIKE, IN, BETWEEN, REGEXP and correct NULL handling to find test data and verify records.
-
🔒
3. Aggregations, GROUP BY, HAVING & CASE for Report Testing Use COUNT, SUM, AVG, MIN, MAX with GROUP BY, HAVING and CASE to recompute dashboard numbers, build data-quality scorecards and detect duplicate records.
-
🔒
4. JOINs for Data Validation: Inner, Left, Right & Self Joins Combine tables with INNER, LEFT, RIGHT and self joins to verify UI pages against the database and to find missing, orphaned and mismatched records.
-
🔒
5. Subqueries, CTEs & Window Functions — Interview Classics Solve the classic SQL interview problems (Nth highest salary, duplicates, latest record per group) and advanced validations using subqueries, EXISTS, CTEs and window functions.
-
🔒
6. DML, DDL, Constraints & Transactions: Testing ACID and Rollback Change data safely with INSERT/UPDATE/DELETE inside transactions, prove constraints with negative tests, and verify atomicity, rollback, savepoints and isolation in MySQL 8.
-
🔒
7. Database Testing Techniques: Integrity, Migration, UI-vs-DB, Procedures & Triggers Apply professional database testing techniques — schema checks, data and referential integrity rules, migration/ETL reconciliation, UI-vs-DB verification, and stored procedure and trigger testing.
-
🔒
8. Automating DB Checks with JDBC (Java) and Python Build a reusable database validation layer with JDBC + TestNG and Python + pytest, integrate DB assertions with UI/API tests, and run the checks in GitHub Actions.
-
🔒
9. Query Performance with Indexes & EXPLAIN + MongoDB Testing Intro Generate realistic data volumes, read EXPLAIN/EXPLAIN ANALYZE output, prove the impact of indexes, and validate document data in MongoDB with queries, aggregation and schema validation.
-
🔒
10. Capstone: Order Management DB Test Plan, 30-Check Suite & Automation Deliver a complete, portfolio-ready database testing project for the order-management scenario: test plan, 30-check SQL validation suite, automated pytest/CI execution and defect reports.