Skip to main content
The Query Editor is where you spend most of your time on Dune. It consists of three main areas: The left sidebar gives you quick access to data discovery and query management tools. The most important panel here is the Data Explorer, which connects you directly to Dune’s full Data Catalog — letting you search for tables, inspect schemas, and insert columns into your query without leaving the editor.
  • Data Explorer — Browse and search across curated datasets, decoded contracts, raw blockchain tables, partner data, and your own uploaded data. You can search by table name, contract address, or keyword. See Find Data Tables for a full guide.
  • Query Explorer — Search for and locate existing queries relevant to your analysis.
  • Version History — Review past edits to your query and revert to any previous version.
  • Settings — Configure query-level settings such as ownership and privacy.
Double-click any sidebar icon to collapse or expand it.

Central Editor

The central editor is your main workspace for writing and running SQL. It includes a full-featured code editor with autocomplete, syntax highlighting, and inline error messages, along with a results panel where you can view output, sort columns, and build visualizations. See Writing Queries for a detailed guide on editor features, autocomplete, keyboard shortcuts, and running queries. The right sidebar contains tools for automating and exporting your work once a query is ready:
  • Query Scheduler — Set queries to run automatically on a recurring schedule so your dashboards and data stay up to date.
  • Materialized Views — Save query results as reusable tables that other queries can reference directly.
  • Export as CSV — Download your query results for use in external tools or reports.
  • Alerts — Configure notifications that trigger when your query results meet specific conditions.

Features at a Glance