What You’ll Learn
In this guide, you’ll learn how to query and analyze your data using the SQL Viewer. By the end, you’ll be able to:Before You Start
Understanding the SQL Viewer Interface
The SQL Viewer provides a workspace divided into three main sections:- Dataset Browser (Left Panel) - Browse and select from available datasets
- Query Editor (Top Right Panel) - Write and build your SQL queries
- Results Viewer (Bottom Right Panel) - View and export query results

Step-by-Step Instructions
Navigate to the SQL Viewer
Select a Dataset
- Search by name: Use the search box at the top to filter datasets
- Browse by group: Datasets are organized into groups using expandable sections
- Review status: Look for error badges that indicate dataset issues
- The dataset name will be highlighted
- The schema (list of columns) will appear below the dataset list
- The query editor will be ready for use

Review the Dataset Schema
- Column names: The fields available in your dataset
- Data types: Whether each column contains text, numbers, dates, or other data types
Build Your Query
- Write your SQL query directly in the text field
- Use autocomplete by pressing
Ctrl+Spaceor typing 2+ characters - Click the Format button to clean up your SQL formatting
- Switch to the Visual Builder tab for a no-code interface
- Use drag-and-drop controls to build your query
- The SQL is automatically generated as you build
- Click the Help button (?) to open the Query Cookbook
- Browse 20+ pre-built query templates
- Click any template to insert it into your editor
- Modify the template to match your specific needs

Choose Your Query Mode
- Standard Mode (default): Best for testing queries. Returns results in 30 seconds or times out.
- Async Mode (toggle on): For large or complex queries that take longer than 30 seconds. Results are processed in the background.
- Table View (ARRAY): Displays up to 1,000 rows in an interactive table
- CSV Export: Generates a comma-separated values file for unlimited rows
- Parquet Export: Creates a columnar format file optimized for analytics
Execute the Query
Ctrl+Enter) to execute your query.You’ll see a progress indicator while the query runs. You can:- Cancel the query at any time by clicking the Cancel button
- Monitor the status in the results panel
View and Export Results
- Results appear in the interactive table below the query editor
- Sort columns by clicking on column headers
- Filter data using the column menu options
- Export visible results using the export buttons
- The file will be prepared in the background
- When ready, your browser will automatically download the file
- Open the file in Excel, a text editor, or your preferred analytics tool
- The results panel will also load a preview of the first 1,000 rows

Query Execution Modes Explained
Standard Mode
- Writing and testing new queries
- Working with smaller datasets
- Need immediate feedback
- 30-second timeout
- Up to 1,000 rows in table view
Async Mode
- Large datasets with millions of rows
- Complex queries with joins or aggregations
- Exporting complete datasets
- No timeout limit
- Results processed in background
- Automatic file download when ready
Best Practices
Do This
LIMIT 100 when testing queriesWhy: This helps you verify your query logic quickly without processing large amounts of data. Remove the limit once you’re confident in your query.Not That
Do This
Not That
Common Issues & Solutions
My query is timing out after 30 seconds
My query is timing out after 30 seconds
- Add a
LIMITclause to test your query with fewer rows - Once your query works, toggle on Async Mode
- Select CSV or Parquet as your output format
- Run the query again - it will process in the background without timeout limits
I see an error: 'Column not found' or 'Syntax error'
I see an error: 'Column not found' or 'Syntax error'
- Check the schema panel on the left to verify correct column names
- Column names with spaces or special characters need double quotes:
"Column Name" - Use the Format button to clean up your SQL
- Try clicking column checkboxes to auto-generate proper column references
- Review the Query Cookbook for syntax examples
The results table only shows 1,000 rows but I need all my data
The results table only shows 1,000 rows but I need all my data
- Change the output format to CSV or Parquet
- Toggle on Async Mode if you expect a large result set
- Run your query
- The complete file will be downloaded to your computer with all rows
My dataset shows an error badge - what does this mean?
My dataset shows an error badge - what does this mean?
- Red badge: Connection error or dataset not found - contact support
- Yellow badge: Previous query error - try selecting the dataset again to clear the error
Autocomplete isn't appearing when I type
Autocomplete isn't appearing when I type
- The query editor must be focused (cursor blinking)
- You’ve typed at least 2 characters
- A dataset is selected (for column suggestions)
Ctrl+Space to manually open autocomplete at any time.Can I save my queries for later use?
Can I save my queries for later use?
- Click the History button in the query editor toolbar
- Select from your recent queries (up to 50 stored)
- The query will be loaded into the editor
Advanced Tips
Using Time-Based Filters Effectively
Using Time-Based Filters Effectively
Working with Large Result Sets
Working with Large Result Sets
- Use Parquet format instead of CSV for better compression and faster downloads
- Enable Async Mode to avoid timeout issues
- Add indexes to your WHERE clause - filter on timestamp or ID columns when possible
- Aggregate when possible - use
GROUP BYto summarize data instead of exporting raw rows
Building Efficient Aggregation Queries
Building Efficient Aggregation Queries
Interactive Schema Panel Shortcuts
Interactive Schema Panel Shortcuts
- Click individual columns to add/remove them from your SELECT clause
- Click “Select All” to add all columns at once
- Columns with special characters are automatically quoted correctly
- The query updates in real-time as you click checkboxes
Supported SQL Features
The SQL Viewer uses DuckDB SQL dialect, which supports:- Standard SQL operations: SELECT, WHERE, GROUP BY, ORDER BY, LIMIT
- Aggregations: COUNT, SUM, AVG, MIN, MAX, percentiles
- Time functions: Date arithmetic, intervals, time zones
- Window functions: Running totals, moving averages, rankings
- String operations: Pattern matching, concatenation, formatting
- Math operations: Basic arithmetic, rounding, statistical functions