Dynamically Modifying GROUP BY Clauses
I need a Purchase Order Summary report where users can optionally choose to group the results by ‘Supplier ID’ in addition to the mandatory ‘Currency Code’. If they choose not to group by Supplier, the query should perform simple currency aggregation. How can I dynamically insert the `pv.vendor_id` column into the `GROUP BY` clause?
7 replies
- You must be logged in to reply to this post.
Sign in with LinkedIn or Google to take part.