I have a SQL server query that I want to return all the type of orders in the system. Simple enough using:
SELECT OrderType.OrderTypeID
FROM Order
INNER JOIN OrderType ON OrderType.OrderTypeID = Order.OrderType
GROUP BY OrderType.OrderTypeID
Unfortunately with Crystal Reports, I want the ability to pass through a parameter such as RegionID (as multiple) and display only the Order Types in that region. To achieve this I must add Order.RegionID to the select statement (and therefore the Group By statement) resulting in duplicate Order Types.
Is there a way to use DISTINCT or grouping in crystal reports to get around this problem? Greatly appreciate any assistance.