On Monday, July 24, 2017, <r...@dannerdata.com> wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/9.6/static/queries-with.html > Description: > > The first example in 7.8.1 shown below includes a field called > 'quantity' to > be summed in the primary SELECT statement. I think this is a mistake.
It isn't. > I do > not think this field exists in the WITH virtual table > It wouldn't matter if it did since in the main query the only from item is the orders table which can be reasonably assumed to contain a quantity column. David J.