In a firebird database with a table \"Sales\", I need to select the first sale of all customers. See below a sample that show the table and desired result of query.
So simple as:
select CUSTOMERID min(DTHRSALE) from SALES group by CUSTOMERID