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.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
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.
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…
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.
Learn SQL CROSS JOIN: the Cartesian product of two tables, generating combinations and calendars, filling report gaps, and the accidental cross join.
Learn correlated subqueries in SQL: how the inner query runs once per outer row, top salary per department, latest order per customer, faster alternatives.
Learn SQL constraints in MySQL: NOT NULL, UNIQUE, PRIMARY KEY, FOREIGN KEY, CHECK and DEFAULT, column vs table constraints, naming and listing them.
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.
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.
MySQL date and time functions with examples: NOW, CURDATE, YEAR, MONTH, DATE_FORMAT, DATEDIFF, TIMESTAMPDIFF, DATE_ADD, LAST_DAY, and grouping by month.
MySQL numeric functions with examples: ROUND, TRUNCATE, CEIL, FLOOR, ABS, MOD, POWER, SQRT, integer division, percentages and RAND, step by step.
MySQL string functions with examples: CONCAT, CONCAT_WS, LENGTH, UPPER, LOWER, SUBSTRING, LEFT, RIGHT, INSTR, REPLACE, TRIM, LPAD and SUBSTRING_INDEX.
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.
Take free timed mock tests with answers and explanations.