Tag archive
Commands grouped around the same concept, pattern, or recurring problem.
Reshape a wide table by turning multiple columns into key-value row pairs — the inverse of a PIVOT operation.
Use `LATERAL` (or `CROSS APPLY` on SQL Server) to let a subquery reference columns from the preceding table in the `FROM` clause.