Tag

union

0 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Feb 27, 2025 · Fundamentals

Effective Use of Python Type Hints: Basics, Optional, Collections, Unions, and Any

This article explains how to apply Python type hints—including basic types, the modern pipe syntax for optional values, collection generics, union types, and the flexible Any type—through clear examples and best‑practice guidance to make code more readable and safer.

CollectionsOptionalany
0 likes · 6 min read
Effective Use of Python Type Hints: Basics, Optional, Collections, Unions, and Any
Aikesheng Open Source Community
Aikesheng Open Source Community
Nov 7, 2023 · Databases

When Does MySQL Use Internal Temporary Tables? Analysis of UNION, GROUP BY and Other Scenarios

This article explains the circumstances under which MySQL creates internal temporary tables, illustrating the behavior with UNION, UNION ALL, GROUP BY, various hints, and additional query patterns, and provides practical examples and execution plans to help developers understand and optimise their queries.

GROUP BYMySQLPerformance
0 likes · 13 min read
When Does MySQL Use Internal Temporary Tables? Analysis of UNION, GROUP BY and Other Scenarios
Aikesheng Open Source Community
Aikesheng Open Source Community
Jul 12, 2023 · Databases

Optimizing a Slow MySQL Query: Converting EXISTS to JOIN and Replacing OR with UNION

This article analyzes a sluggish MySQL query, explains why the original plan performs a full table scan, and demonstrates how rewriting the EXISTS clause as an INNER JOIN and substituting the OR condition with a UNION dramatically reduces execution time from 42 seconds to 18 milliseconds.

EXISTSInner JoinMySQL
0 likes · 6 min read
Optimizing a Slow MySQL Query: Converting EXISTS to JOIN and Replacing OR with UNION
DataFunSummit
DataFunSummit
Feb 9, 2023 · Databases

Comprehensive Guide to Multi-Table Queries and Joins in SQL

This article explains multi‑table SQL queries, detailing Cartesian products, various join types (inner, left/right/full outer, self‑join, natural join, USING), UNION operations, and provides practical examples and exercises to illustrate correct join syntax and performance considerations.

Cross JoinDatabaseSQL
0 likes · 18 min read
Comprehensive Guide to Multi-Table Queries and Joins in SQL
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 28, 2022 · Databases

Understanding and Using UNION in MySQL 8.0

This article explains the purpose, syntax rules, and practical examples of the UNION operator in MySQL, covering distinct and ALL modes, ORDER BY restrictions, new TABLE and VALUES usages introduced in MySQL 8.0.19, and differences from MySQL 5.7.

CodeExamplesDatabaseMySQL
0 likes · 8 min read
Understanding and Using UNION in MySQL 8.0