T-SQL 101: 117 Creating Scalar Subqueries in SQL Server T-SQL
The first example of subqueries types in this series is what’s called a scalar subquery. In this case, I’m trying to work out which orders were on the last day that we delivered any orders. We deliver orders on various days, but on the last day that we did deliver orders, tell me which orders they were.
The problem with this is that we don’t know what the delivery date was.
2025-02-18