Software Testing / Learning brief

Tom tests a daily change report and a latest-task report

What this means in plain language

Tom builds edge data for a change report and a latest-task report, with ties and a group of one.

Understand the full idea, step by step

Analogy: a train timetable. At each stop you can see the stop before and the stop after. The line does not change as you ride along it.

The stops in view are the frame.

Tom, the tester at Daily List, a to-do list app, tests what happens at the first stop, where there is nothing before it.

Evidence & review

REVIEWED 2026-10-31

The date on this lesson is when it went up on Payments Signal, not when its material was written — most of these were brought across from an earlier catalogue in a single run, which is why so many of them share a date. What the lesson says about the world is dated by the review above and by the sources below it.

Testing window reports. The people, app and data are invented.

What this brief simplifies: Fiction labelled SYNTHETIC / TRAINING ONLY. Sources were seen only as search excerpts. Tools and screens change, and each team sets its own.

Sources for this brief — 3 sources
  1. Market practice

    Window functions (PostgreSQL tutorial) ↗ — PostgreSQL · PostgreSQL tutorial: partition by splits rows into groups, order by sets the order inside each group, and with an order the default frame runs from the start of the group to the current row plus any ties (search excerpt, page not opened)

    The PostgreSQL tutorial page on window functions, partitions and the default frame. Official project documentation. · Checked 2026-10-31

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    Window functions reference (PostgreSQL documentation) ↗ — PostgreSQL · PostgreSQL reference: lag looks back and lead looks forward by an offset that defaults to one, and a window function cannot be used in where so a latest-row filter needs a subquery (search excerpt, page not opened)

    The PostgreSQL reference for ranking and offset functions such as lag, lead and row number. Official project documentation. · Checked 2026-10-31

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal

    This site's own simplified teaching models. · Checked 2026-07-12

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Learn this properly

START HEREWindow functions in depth: frames, lag and lead, and the latest rowMany reports show a running total, a change since yesterday or the latest item for each user. Learn how a frame of rows works so you can build data that tests them.Opens at L0 Explain simply · about 16 min

Related briefs