SqlOtter

Browse and edit table data / Inspect and understand

Read statistics for a column

Confirm the row scope before interpreting type-aware totals, counts, or distributions.

Where to open it

Right-click a column header → Column Statistics; then use the status-bar statistics button or Show Statistics Detail.

Default shortcuts

Check the current column and selected rows first; the default shortcut opens statistics detail.

Default shortcuts
ActionWindows / LinuxmacOSFocus and effect
Show column statistics detailCtrl+Alt+A⌘+⌥+AUses the current table and column: selected rows take precedence, otherwise the currently loaded rows are used.
Calculate statistics for another columnNo dedicated defaultNo dedicated defaultRight-click the intended header → Column Statistics; the detail shortcut does not replace selecting the correct statistics column.
  • Settings → Shortcuts shows configurable bindings; customized keys take precedence. Fixed dialog keys and mouse gestures may be managed by their own controls.
  • On macOS, ⌘ means Command and ⌥ means Option. Function keys may require Fn. Delete means forward delete (often Fn+⌫ on a compact Mac keyboard); use the menu when Insert is unavailable.

Before you start

Use a connection with read permission. Keep the intended database and table selected; available actions depend on the engine and field metadata.

Follow these steps

  1. Select the records you want to inspect, or clear the selection to use all rows currently loaded in the grid.
  2. Right-click the target column and choose Column Statistics.
  3. Read the compact result in the status bar, then open its statistics button or choose Show Statistics Detail from the column menu.
  4. In the detail view, check the selected column and row scope before using a statistic in a report.

Example

The supplied captures select id 190, 185, and 180 at loaded-grid rows 6, 11, and 16. Count = 3; Distinct = 3; NULL Count = 0 (0.0%); Min = 180; Max = 190; Sum = 555; Average = 185.00. The status bar shows Range: 180 ~ 190, while the detail card shows the span, Range = 10. These results describe the three selected rows, not all 100 loaded rows or the retained 295 Rows table count.
SqlOtter table grid with rows 6, 11, and 16 selected, containing id 190, 185, and 180; page 2, page size 100, snapshot age, and read-only row-identity banner are visible.
Product-owner capture received 2026-10-15, 2026 Build 1010. The selection contains id 190, 185, and 180. The grid retains 295 Rows and 100 loaded rows; the selection, not those totals, defines this calculation. Snapshot · 22h 58m and the read-only row-identity banner remain visible. Historical screenshot; UI icons have been updated.

What to expect

The status bar and detail dialog show type-aware statistics for the selected column, using the selected rows or all rows currently loaded in the grid. In the supplied id example, both views show Average 185.00 without a time-unit suffix and Sum 555 for the same three selected rows.

Column id status summary: Count 3, Distinct 3, NULL 0, Range 180 ~ 190, Avg 185.00, Sum 555, with a statistics button.
Exact status-bar crop from the same selection capture: Count 3, Distinct 3, NULL 0, Range 180 ~ 190, Avg 185.00, and Sum 555. Average has no ms suffix. The adjacent statistics button opens the detail view.
Complete Column Statistics dialog for id, BIGINT: Count 3, Distinct 3, NULL Count 0, NULL 0.0%, Min 180, Max 190, Range 10, Average 185.00, Sum 555; Close and Copy to Clipboard are visible.
Complete detail dialog from the updated capture: BIGINT id has Count 3, Distinct 3, no NULLs, Min 180, Max 190, Range 10, Average 185.00, and Sum 555. Range here is Max − Min. Close and Copy to Clipboard are visible; their activation is not established by this still.

Scope and limits

  • Selected rows take precedence; with no selected cells, the calculator uses every row currently loaded in the grid, not an aggregate over the entire database table.
  • The calculator reads the displayed cell text or cell widget and maps the grid's NULL marker to a null value; paging, reloads, truncated previews, field types, and selection can therefore change the result.
  • The detail view adds type-specific cards such as numeric range and average, text lengths, or date range. Use a database aggregation query when you need a whole-table calculation.
  • For numeric columns, the status bar labels the minimum-to-maximum interval as Range; the detail card labels Max − Min as Range. An average uses the field’s own unit: this BIGINT id example has no ms suffix.
  • These captures show Snapshot · 22h 58m and “Row identity: No unique row identity; existing rows are read-only”. The snapshot label is data age, not execution duration. The statistics describe displayed snapshot values; the key icon and “Primary key ID” comment do not establish a currently usable row identity or editable rows.
  • In the grid Escape chain, selection is cleared before column statistics, and statistics before the current cell position. Table fullscreen exits only after these states are cleared.

If something goes wrong

  • If the action is unavailable or the result is empty, verify that table rows are loaded and that the connection exposes table-data browsing and field metadata.