calling-postgresql-stored-functions.html">Calling Postgresql Stored Functions and Procedures</a></td>
</tr>
</tbody>
</table>
</div>
</div>

<div id="outline-container-lateral" class="outline-2">
<h2 id="lateral">Lateral</h2>
<div class="outline-text-2" id="text-lateral">
<p>
Basically, the lateral keyword allows access to columns after the from statement and use them earlier in the query. Here is a sample vanilla sql query using lateral, borrowed from <a href="https://popsql.com/learn-sql/postgresql/how-to