Tag archive
Commands grouped around the same concept, pattern, or recurring problem.
Use `LATERAL` (or `CROSS APPLY` on SQL Server) to let a subquery reference columns from the preceding table in the `FROM` clause.