first_value
first_value(x) takes x from the first row of the window frame.
task
For every order's first line (line_no = 1), return order_id and the unit_cents of the first line of that customer's first-ever order (ties by order_id).
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
first_value(x) takes x from the first row of the window frame.
For every order's first line (line_no = 1), return order_id and the unit_cents of the first line of that customer's first-ever order (ties by order_id).