Concept Flow - Scalar subquery in SELECT
Start Query
Execute Outer SELECT
For each row in Outer Table
Run Scalar Subquery
Return single value
Replace Subquery with value
Complete Row Result
Repeat for all rows
Return Final Result Set
The query runs the outer SELECT, and for each row, it runs the scalar subquery to get one value, then uses that value in the result.