SqlOtter
← All documentationWrite & reuse SQL

Write & reuse SQL

Pin and compare query results

Pin loaded rows in the editor, compare snapshots, draw a small chart, or return to the source SQL.

What this feature does

Save a snapshot while the editor is open, run another query, then review a comparison or chart.

When to use it

Use this for a short comparison between result sets while the SQL editor session remains open.

Workflow illustration for pinning a query result and comparing it with a later snapshot.
Conceptual workflow diagram; this is not a captured SqlOtter screen. Release-matched screenshots are still pending.

Before you start

Keep the SQL editor open; pinned snapshots are temporary editor-session data.

Default shortcuts

Result selection determines copy scope; pinning and comparison use result controls.

Default shortcuts
ActionWindows / LinuxmacOSFocus and effect
Pin, unpin, and compare resultsNo dedicated defaultNo dedicated defaultUse the result-panel buttons or menus; these actions have no common dedicated default.
Copy the current selectionCtrl+C⌘+CBehavior depends on focus, selection, and view. Use the explicit cell menu when choosing raw versus displayed values.
Copy selected rows as JSONCtrl+Shift+C⌘+Shift+CFocus the table and select rows; visible columns and loaded content affect the output.
Inspect execution records for resultsCtrl+Shift+H⌘+Shift+HLocate the record in query execution history; pinning a result does not rerun the query.
  • 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.

How to use it

  1. Run the query and keep its SQL editor open.
  2. Pin the loaded result in the result panel.
  3. Run a second query, then compare snapshots or chart a numeric column.
  4. Use Go to SQL source to return to the query behind a result.

What to expect

The editor can display a temporary comparison or chart for loaded result rows.

Limits and safety

  • Snapshots are temporary; each editor keeps up to 20 snapshots of 5,000 loaded rows.
  • Charts sample up to 250 points; comparison is not primary-key reconciliation.

If something goes wrong

  • If the comparison is empty, confirm that a snapshot was pinned and that both result sets expose compatible columns.
  • If a chart omits values, check the selected numeric column and whether the result has loaded the rows you expect.