Skip to content

Query Console

The Query Console lets analysts run SQL queries directly against your account’s data in FirstHive, for ad hoc analysis, troubleshooting and checking data before you build a segment or export.

Go to Data > Query Console.

Query Console

Who can do this: Users with the Query Console permission.

Run a query

  1. Type your query in the SQL editor. For example:

    SELECT campaign_name, COUNT(*) AS events
    FROM campaign_events
    GROUP BY campaign_name
    ORDER BY events DESC
    LIMIT 20
  2. Click Run, or press ⌘ + Enter (Mac) or Ctrl + Enter (Windows).

  3. Page through the results below the editor. Results are returned up to 200 rows per page.

Click History to reopen queries you’ve run before.

Good to know

  • Queries are read-only. You can’t change or delete data from the Query Console.
  • Queries only see your own account’s data.
  • Some system tables are blocked for security.
  • To save a query’s results on a schedule, use Data Exports with the Raw SQL Query source.