Visual Query Builder
ExecSQL Window - SQL - Query Builder
You can use the query builder assistant to help you write sql sentences.
You must drop the tables you want to the work area, then select fields, grouping etc.
See also:
ExecSQL Window Index