Single-Table SQL Queries
SELECT chooses the fields, WHERE the records and ORDER BY their order: a query returns exactly the rows its condition keeps, and COUNT and SUM turn them into one number.
↺
Which fields come back?
Make Result show only the berth codes and their rates.
Lit berthsNot yet
Their total SeatsNot yet
QueryMooringsReady to runThe result has not been calculated.
COUNT(…) / SUM(…) · one number
Clause tiles insert a pattern with editable blanks. A selected blank can be typed over or filled from a source heading. Tab moves to the next blank.
Your output
0 fields · 0 recordsNo fields or records yet.
Result
After RunMoorings
column · fieldrow · recordCode · primary key
Complete
One table at a time, up to two conditions. Text comparisons ignore case. Without ORDER BY, source order stays; ties keep their source order. An empty SUM has no value.