on 2021 May 15 8:48 AM
The FROM clause
SELECT table1.whatever, table2.etcetera FROM table1, LATERAL ( table-expression ) AS table2
works as if it was coded as an INNER JOIN with special LATERAL properties... rows in table1 that don't match rows in table2 are excluded from the result set.
LATERAL is very cool (and fast), but so is LEFT OUTER JOIN.
Request clarification before answering.
I'd use OUTER APPLY here, and CROSS APPLY for inner joins, see here... - and particularly Glenn's older blog article - those were the days...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.