SQA Tools Blog

Learn testing and automation, one article at a time

Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.

1,901Articles
1,141Solved Python problems
7Topics
100%Free

Latest articles

1,901 articles · page 77 of 159
SQL

SQL DROP TABLE and DROP DATABASE

Remove tables and databases with SQL DROP: DROP TABLE, IF EXISTS, dropping tables with foreign keys, DROP DATABASE, and DROP vs TRUNCATE vs DELETE in MySQL.

5 min readRead →
SQL

SQL ALTER TABLE

Change a table's structure with SQL ALTER TABLE: add, modify, rename and drop columns, rename tables, add keys and indexes, and change big tables safely.

9 min readRead →
SQL

SQL DELETE and TRUNCATE

Remove rows with SQL DELETE: by condition, with a subquery or JOIN, foreign key errors, and DELETE vs TRUNCATE vs DROP explained with real MySQL output.

9 min readRead →
SQL

SQL UPDATE Statement

Change data with the SQL UPDATE statement: one column, several columns, calculated values, CASE, UPDATE with JOIN and safe-update habits, with MySQL output.

8 min readRead →
SQL

SQL SELECT Statement

Learn the SQL SELECT statement step by step: columns, SELECT *, calculated columns and query execution order, with sample tables and real MySQL output.

9 min readRead →
SQL

SQL INSERT INTO Statement

Add data with SQL INSERT INTO: one row, many rows, selected columns, default values, INSERT INTO SELECT and the errors you will meet, with MySQL 8.4 output.

9 min readRead →
SQL

SQL Introduction

What is SQL and why learn it? A beginner introduction to databases, tables, RDBMS, SQL vs MySQL and the five SQL command types, with real MySQL examples.

6 min readRead →

SQL Views

Learn SQL views in MySQL: CREATE VIEW, querying a view, CREATE OR REPLACE, updatable views, WITH CHECK OPTION, views for security, and view vs table.

8 min readRead →

SQL Triggers

Learn MySQL triggers step by step: BEFORE and AFTER triggers, NEW and OLD rows, audit logs, validation with SIGNAL, keeping stock in sync, and trigger pitfalls.

8 min readRead →

SQL Transactions and ACID

Learn SQL transactions in MySQL: START TRANSACTION, COMMIT, ROLLBACK, SAVEPOINT, autocommit, ACID properties and isolation levels, with a bank transfer example.

9 min readRead →

SQL Aggregate Functions

Learn SQL aggregate functions COUNT, SUM, AVG, MIN and MAX step by step: COUNT(*) vs COUNT(column), DISTINCT, NULL handling and GROUP_CONCAT, on MySQL.

7 min readRead →

SQL SELF JOIN

Learn SQL SELF JOIN step by step: join a table to itself with aliases, list employees with their managers, compare rows in the same table, find pairs, in…

7 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.