On Tue, Oct 24, 2017 at 3:49 PM, Andreas Joseph Krogh
<andreas(at)visena(dot)com> wrote:
> I'm not sure how an alias for the target_table will help me here as I'm trying to return a value not being inserted?
> f.id is not inserted, only columns matching f.id.
I must have had my wires crossed.
As David says, you could use multiple CTEs for this.
--
Peter Geoghegan