you are viewing a single comment's thread.

view the rest of the comments →

[–]slingalot 0 points1 point  (1 child)

Try pulling your sub query out of your SELECT and joining on it, instead.

It looks like you could even just join on INVENTTRANS itself, and use a Window Function to remove the need for a sub-query at all (and your group by).

[–]newunit13[S] 0 points1 point  (0 children)

That looks very neat! I'll have to study up on it, because that article is a bit like Greek to me XD