
SQL editor
Read-only SQL across all tables of your organization, with a table and column browser, saved queries, bar, line or number charts, CSV export and save as table.
We use essential functions to operate this website. With your consent, we would also use services for statistics and marketing. You decide which categories you allow and can change your choice at any time via “Cookie settings” in the footer. More in our privacy notice.
Obseria Consent Management · Your choice is stored for 12 months
Write read-only SQL across all tables of your organization, browse tables and columns, save queries under a name and turn results into charts, CSV files or new tables.



The screenshot shows the query builder in Obseria. The SQL editor in Obseria Data works on your business tables in the same spirit: write SQL, run it and see the result as a table or chart.

The screenshot shows saved views in Obseria. Saved queries in Obseria Data follow the same idea: a name, a description and the SQL, ready for the editor and for dashboard tiles.

The screenshot shows the export view in Obseria. In the SQL editor, a result is exported as CSV with one click, or saved as a table of its own.

The screenshot shows observability dashboards in Obseria. Business dashboards in Obseria Data build their tiles from your tables, from a visual builder or from a saved query.

The screenshot shows a workflow list in Obseria. A workflow step runs read-only SQL on your tables and passes the rows on, for example to a CSV file and an email.


Read-only SQL across all tables of your organization, with a table and column browser, saved queries, bar, line or number charts, CSV export and save as table.
Typed tables for business data from files, syncs, workflows or saved queries, with labels, personal-data flags, owner and retention per table.
Learn more →Open the table browser, see row counts and columns with their types, and click a name to insert it into the query.
Write a SELECT with filters, joins and grouping. Ctrl or Cmd + Enter runs it.
See rows, column types, row count and duration. Switch to a bar chart, a line chart or a single number.
Give the query a name and a description, or save the result as a table of its own.
Export as CSV, use the saved query in a dashboard tile or run the SQL on a schedule in a workflow.
The left side of the SQL editor lists every table of your organization with its row count. A click on a table inserts its name at the cursor, ready to query. Expanding a table shows its columns with their types, such as text, number, date or yes/no, and a click inserts the column name.
The editor keeps your last query when you come back, runs with Ctrl or Cmd + Enter and copies the SQL with one click. From a table page you can jump into the editor with a starter query that shows the latest rows of that table.
Need a question answered without writing SQL? The editor links to the plain-language Ask view, and every answer there can be opened back in the editor.
Queries run under a read-only database user that only sees the tables of your organization. Only read statements are accepted: SELECT, WITH, SHOW, DESCRIBE and EXPLAIN, one statement per run. System tables and the tables of other organizations are not reachable.
Each query has a time limit of 30 seconds. The editor returns up to 5,000 rows and marks a result as truncated when there would be more. For larger results, save them as a table or aggregate first.
The SQL dialect is ClickHouse SQL. Tables that are updated by key keep older row versions until they are merged; append FINAL after a table name to read only the latest version of each row.
Every result shows the row count, the duration in milliseconds and the type of each column. Numeric columns are right-aligned so amounts are easy to compare.
When the result has a numeric column, switch the view to a bar chart or a line chart; a result with a single row can be shown as one large number. The editor suggests the axes: a text or date column on the x axis and the first numeric column as the value.
The chart setting is stored with a saved query, so a dashboard tile built from it starts with the same chart.
A saved query has a name and a description and appears in the list next to the editor. It can be the source of a dashboard tile, and the editor warns before you delete a query that dashboards depend on.
CSV export downloads the current result with a semicolon separator and UTF-8 encoding, which opens cleanly in Excel. Save as table turns the result into a table of its own, replaced each time you save again. That is useful for derived lists that reports, dashboards and workflows read.
For results that should be rebuilt on a schedule, models run a query every 15 minutes up to monthly and write the result into a table, and workflows can run SQL and pass the rows to the next steps.
A SQL editor is the place where you write a query, run it and look at the result. In a business data platform, it sits on top of the tables that hold your invoices, orders, customers and tickets. Instead of exporting three spreadsheets and matching them by hand, you write a few lines of SQL and get the answer, the same way every time.
A good online SQL editor for business data does more than run statements. It shows which tables and columns exist, keeps useful queries under a name, turns a result into a chart and lets the result leave the editor as a file, a table or a dashboard tile.
Most reporting questions follow a handful of patterns. Revenue per customer this month:
SELECT customer, round(sum(amount), 2) AS revenue
FROM `invoices` FINAL
WHERE paid_at >= toStartOfMonth(now())
GROUP BY customer
ORDER BY revenue DESC
LIMIT 20
Orders per month, ready for a line chart:
SELECT toStartOfMonth(created_at) AS month, count() AS orders
FROM `orders` FINAL
GROUP BY month
ORDER BY month
Open invoices that are older than 30 days:
SELECT invoice_number, customer, amount, issued_at
FROM `invoices` FINAL
WHERE status = 'open' AND issued_at < now() - INTERVAL 30 DAY
ORDER BY issued_at
The patterns are always the same: filter with WHERE, group with GROUP BY, aggregate with sum, count or avg, and sort the result. Joins connect tables, for example invoices with the customer table, so a report can show the customer's region next to the revenue.
Analysis and data changes should be separate. A report that accidentally runs an UPDATE or DELETE can destroy the numbers everybody relies on. That is why a read-only SQL setup is the right default for a reporting editor: only SELECT statements (and read statements such as WITH, SHOW, DESCRIBE and EXPLAIN) are allowed, one statement per run.
Two more guard rails matter in a shared platform. Queries should only see the tables of your own organization, and they should not reach system tables. And they need a time limit, so a runaway query does not block everyone else.
toStartOfMonth, toStartOfWeek or toDate turn a timestamp into a period, which is what most charts need.FINAL returns only the latest version of each row.AS revenue makes the chart axis and the CSV header readable.A query that answers a recurring question deserves a name and a short description of what it answers and which assumptions it makes. Saved queries become the shared definition of a figure: when the sales team and the finance team open the same saved query, they see the same revenue.
From there, a result usually goes one of four ways. As a chart (bar, line or a single number) for a quick look. As a CSV export for a colleague who works in Excel. As a new table that other reports and workflows build on, for example a cleaned customer list. Or as a dashboard tile that refreshes on its own.
What matters is that the way back from a result to its query stays short. Anyone who sees a figure in a tile or an exported file should be able to find the query behind it with one click and check which filters and assumptions apply.
Not every question needs hand-written SQL. A visual builder with table, value, grouping and filters covers many dashboard tiles. A question in plain language that an AI model turns into SQL is the fastest start for people who do not write SQL. The SQL editor is the tool for everything else: joins across several tables, subqueries, careful date logic and checking exactly what an AI-generated query does.
In Obseria there is a second query tool that is easy to confuse with this one. The query language and query builder of the observability platform works on telemetry: logs, metrics, traces, web events and PromQL. The SQL editor described here works on business tables in Obseria Data.
Queries, saved queries and dashboards are included in Obseria Data. Only rows written, for example by saving a result as a table, and the data you keep are metered; see the pricing.
ClickHouse SQL. Common functions such as sum, count(), round, toStartOfMonth and joins work as expected. Append FINAL after a table name to read only the latest version of rows that were updated by key.
No. Only read statements are accepted (SELECT, WITH, SHOW, DESCRIBE, EXPLAIN), one per run, and they run under a read-only user that only sees your organization's tables. Data changes happen through imports, syncs, workflows, the API or editing in the table view.
The editor shows up to 5,000 rows and marks larger results as truncated. Each query may run for up to 30 seconds. For bigger datasets, aggregate in SQL or save the result as a table.
The query language and query builder work on telemetry in Obseria's observability platform: logs, metrics, traces, web events and PromQL. The SQL editor works on business tables in Obseria Data, such as invoices, orders and customers.
Not from the editor itself. Use a model to rebuild a table from a query every 15 minutes up to monthly, or a workflow with a SQL step, for example to mail the result as CSV every weekday morning.
Queries, saved queries and dashboards are included in Obseria Data. Rows written, for example when you save a result as a table, are billed at $0.50 per million after 1 million rows per month, and storage at $0.50 per GB-month after 1 GB. See pricing.
Business data in tables: import, syncs, SQL, questions and dashboards.
→A question becomes SQL, a result and a chart, with the SQL always shown.
→Tiles from saved queries or a visual builder, with auto-refresh.
→Run SQL in workflows and mail the result as a report.
→The query builder for logs, metrics, traces and PromQL.
→In 30 minutes we show you how Obseria works in your environment and answer your questions on setup, privacy and pricing.
