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.

Single-table queries
↺

Which fields come back?

Make Result show only the berth codes and their rates.

QueryMooringsReady to runThe result has not been calculated.

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.

Moorings

Source table

column · fieldrow · recordCode · primary key

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.