SQL Aliases (AS)
Rename columns and tables in SQL with aliases (AS): readable headers, short table names in joins, aliases with spaces, and where an alias can be used.
Online Learning Platform
Free tutorials, solved practice problems and interview prep for QA and automation engineers: Python, Playwright, Selenium, SQL, Git and more.
Rename columns and tables in SQL with aliases (AS): readable headers, short table names in joins, aliases with spaces, and where an alias can be used.
Understand NULL in SQL: IS NULL and IS NOT NULL, why = NULL never matches, NULL in arithmetic, COUNT and sorting, and the NULL-safe operator.
BeginnerLesson 14 of 699 min read8 queries run on MySQL 8.4= only finds exact matches. LIKE finds patterns: names that start with "A", emails at a…
Filter SQL rows with IN and BETWEEN: lists of values, number and date ranges, NOT IN, NOT BETWEEN, the inclusive ends of BETWEEN and the NOT IN NULL…
Use SQL LIMIT and OFFSET to return the top N rows, paginate results and find the Nth highest salary, with MySQL examples and the pitfalls of large offsets.
Sort SQL results with ORDER BY: ascending and descending, multiple columns, expressions and aliases, NULL ordering and custom sort orders, in MySQL.
Combine conditions in SQL with AND, OR and NOT. Learn operator precedence, why parentheses matter, and how NULL behaves in logic, with real MySQL results.
Learn the SQL WHERE clause step by step: filter rows with =, , >, =, <=, text and date conditions, and avoid common mistakes, with real MySQL output.
Learn SQL SELECT DISTINCT with examples: unique values from one column, distinct combinations of columns, COUNT(DISTINCT) and how DISTINCT treats NULL.
The free company sample database used in this SQL tutorial: employees, departments, customers, products and orders. See every table and copy the MySQL script.
MySQL data types with examples: INT, DECIMAL vs FLOAT, CHAR vs VARCHAR, TEXT, ENUM, DATE, DATETIME, TIMESTAMP, BOOLEAN and JSON, and how to choose.
Learn SQL syntax rules: statements, keywords, semicolons, case sensitivity, quotes, identifiers and comments, with MySQL examples you can run.
Take free timed mock tests with answers and explanations.