clause
OVER
Turns an eligible function into a window calculation without collapsing input rows. Example target: PostgreSQL 17 and SQLite (local fixture tested).
Formal Syntax & Structure
sql syntaxsql
function(...) OVER (window_definition)Working Example
Example Snippetsql
SELECT id, COUNT(*) OVER () FROM orders ORDER BY id;