SAP Business One – Query Generator

Sub Queries can be extremely useful. Let’s say you want to get a list of business partners (Customers) who have ordered 1000 or more cases of your products in total. Because your report would be getting data from the RDR1 table, without a sub query, the best you could do is sum quantities for all business partners. But here’s how you can list only those businesspartners who’s aggregate order quantity is greater than 1000?