Henry House <hajhouse(at)houseag(dot)com> writes:
> So I run two select and combine them
> using a union statement, but this improperly combines two gl_entry lines th=
> at
> do not differ in amount or transaction ID.
AFAICT you do not want duplicate-row elimination at all. Why don't you
use UNION ALL?
regards, tom lane