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 33 of 159
SQL

SQL EXPLAIN and Query Optimization

Read MySQL EXPLAIN output column by column, use EXPLAIN ANALYZE and EXPLAIN FORMAT=TREE, and apply 10 practical SQL query optimization tips with real examples.

7 min readRead →
SQL

SQL EXISTS, ANY and ALL

Learn SQL EXISTS and NOT EXISTS for checking related rows, why NOT EXISTS beats NOT IN with NULLs, and how ANY and ALL compare a value with a…

7 min readRead →
SQL

SQL CTE (WITH Clause)

Learn Common Table Expressions (CTE) with the SQL WITH clause: simple and multiple CTEs, chaining steps, reusing a CTE, and CTE vs subquery vs view, on MySQL 8.

8 min readRead →
SQL

SQL CROSS JOIN

Learn SQL CROSS JOIN: the Cartesian product of two tables, generating combinations and calendars, filling report gaps, and the accidental cross join.

6 min readRead →
SQL

SQL Correlated Subqueries

Learn correlated subqueries in SQL: how the inner query runs once per outer row, top salary per department, latest order per customer, faster alternatives.

7 min readRead →
SQL

SQL Constraints and DEFAULT

Learn SQL constraints in MySQL: NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK and DEFAULT, column vs table constraints, naming and listing them.

9 min readRead →
SQL

SQL CAST and CONVERT

Convert data types in SQL with CAST and CONVERT: text to number, number to text, strings to dates, DECIMAL precision and implicit conversion pitfalls in MySQL.

7 min readRead →
SQL

SQL IFNULL, COALESCE and NULLIF

Replace and create NULLs in SQL: COALESCE, IFNULL, NULLIF and IF in MySQL, defaults for missing values, safe division by zero, and COALESCE vs IFNULL.

6 min readRead →
SQL

SQL Date and Time Functions

MySQL date and time functions with examples: NOW, CURDATE, YEAR, MONTH, DATE_FORMAT, DATEDIFF, TIMESTAMPDIFF, DATE_ADD, LAST_DAY, and grouping by month.

9 min readRead →
SQL

SQL Numeric Functions

MySQL numeric functions with examples: ROUND, TRUNCATE, CEIL, FLOOR, ABS, MOD, POWER, SQRT, integer division, percentages and RAND, step by step.

6 min readRead →
SQL

SQL String Functions

MySQL string functions with examples: CONCAT, CONCAT_WS, LENGTH, UPPER, LOWER, SUBSTRING, LEFT, RIGHT, INSTR, REPLACE, TRIM, LPAD and SUBSTRING_INDEX.

8 min readRead →
SQL

SQL HAVING Clause

Filter groups with the SQL HAVING clause: HAVING COUNT, SUM and AVG conditions, HAVING vs WHERE explained step by step, and finding duplicates, in MySQL.

6 min readRead →

Preparing for a QA interview?

Take free timed mock tests with answers and explanations.