Posts
SQLite Basics: Combine and Compare Lists with Set Operations
Compound queries combine result rows from separate SELECT statements. UNION combines lists, INTERSECT finds their overlap, and EXCEPT finds what is missing from the second list. …
October 20, 2026
SQLite Basics: Choose Labels and Sort Priorities with CASE
CASE chooses a result inside a query. It is useful for readable labels, ordered rules, and a business-specific sort order. The examples below keep the stored data unchanged. …
October 20, 2026
SQLite Basics: Check for Related Rows with EXISTS
Use EXISTS when a report needs to know whether a related row is present. These examples select customers with orders, find missing matches, and add a yes-or-no flag without …
October 20, 2026
Python Basics: Working with Live Dictionary Views
Dictionary keys, values, and items can be inspected through live views. Understanding the difference between a view and a snapshot helps when comparing mappings or removing …
October 20, 2026
Python Basics: Numbering and Pairing Items with enumerate and zip
A loop often needs a human-friendly row number or matching values from two columns. enumerate and zip express those jobs directly. Use strict pairing when unequal column lengths …
October 20, 2026
Python Basics: Encoding Text and Decoding Byte Chunks
Text and bytes represent different things. Encode text when a boundary needs bytes, and decode bytes using the format that produced them. Invalid input and split multibyte …
October 20, 2026
Python Basics: Comparing Membership with set and frozenset
Sets answer questions about membership without retaining duplicate entries. They work well for tags and required features. A frozenset adds an immutable form that can itself be a …
October 20, 2026
Python Basics: Building Classes That Support Iteration
A class can work in for loops by implementing the iteration protocol. Separate a one-pass iterator from a reusable iterable so callers know whether a second traversal starts over. …
October 20, 2026
Linux Basics: Manage Dedicated Input and Output in Bash
File descriptors are open connections for input and output. Bash starts with standard input (0), standard output (1), and standard error (2). Additional descriptors let a script …
October 20, 2026
Linux Basics: Limit Temporary Shell Changes with Bash Subshells
Parentheses run a group of commands in a subshell. They are useful when a short operation needs a different directory, shell option, or variable value without leaving that shell …
October 20, 2026