Documentation
SQL Explorer

Query with SQL Explorer

SQL Explorer is the in-app workspace for writing and running ad-hoc SQL against Altertable. Use it when you want to inspect tables, test joins, debug a query, or turn an exploration into a saved analysis.

Queries use the same DuckDB SQL dialect as the rest of the lakehouse. You can reference managed Altertable catalogs and external catalogs in one statement.

Example

Join product usage to account data from another catalog:

SELECT
accounts.name,
COUNT(*) AS sessions
FROM product_analytics.analytics.web_sessions sessions
JOIN crm.public.accounts accounts
ON sessions.account_id = accounts.id
WHERE sessions.started_at >= now() - INTERVAL '7 days'
GROUP BY accounts.name
ORDER BY sessions DESC
LIMIT 20;

When to use it

Use SQL Explorer for fast iteration and one-off checks. Use SQL insights when the query should become a saved visualization, and use the HTTP API when application code needs to run queries programmatically.

Learn more

  • SQL engine: DuckDB dialect and cross-catalog queries.
  • Insights: save SQL as reusable analyses.
  • HTTP API: run SQL from scripts and applications.
Crafted with <3 by former Algolia × Front × Sorare builders© 2026 AltertableTermsPrivacySecurityCookies