The following statements create a relation between a table of customers and orders, and use FOUND( ) to show only those customers that have orders:

use CUSTOMER

use ORDERS in select( ) order CUST_DATE

set relation to CUST_ID into ORDERS

set filter to found( "ORDERS" )