Tagged articles

SQL Tutorial

8 articles · Page 1 of 1
liandk
liandk
Aug 24, 2026 · Databases

One‑Line Queries: Using Database Views to Encapsulate Complex SQL

This article explains how database views act as virtual tables that store only query logic, allowing developers to replace repetitive, multi‑join SQL statements with a single, reusable query while improving consistency, hiding sensitive fields, and boosting development efficiency.

Data ModelingDatabase ViewsQuery Optimization
0 likes · 4 min read
One‑Line Queries: Using Database Views to Encapsulate Complex SQL
MaGe Linux Operations
MaGe Linux Operations
Aug 30, 2023 · Databases

Understanding SQL Execution Order: From FROM to LIMIT Explained

This article walks through the exact sequence a database follows when executing a SQL query—starting with FROM and JOIN, then WHERE, GROUP BY, HAVING, SELECT, DISTINCT, ORDER BY, and finally LIMIT—highlighting key differences from the textual order of the statement.

Query OptimizationSQLSQL Tutorial
0 likes · 5 min read
Understanding SQL Execution Order: From FROM to LIMIT Explained
Architecture & Thinking
Architecture & Thinking
Dec 27, 2021 · Databases

Master MySQL GROUP BY: From Basics to Advanced Aggregations

This guide explains MySQL GROUP BY syntax, the role of aggregate functions such as AVG, COUNT, MAX, MIN, and SUM, and demonstrates practical queries with single‑field and multi‑field grouping, filtering with WHERE and HAVING, ordering, limiting results, and the correct execution order of keywords.

Database QueriesGROUP BYMySQL
0 likes · 12 min read
Master MySQL GROUP BY: From Basics to Advanced Aggregations