Workbench Foundations
SQL basics for traders, the Thrive data schema, writing your first queries, and building analysis workflows.
From Thrive on YouTube
Watch the matching Thrive video
Welcome to Thrive | Crypto Market Intelligence Platform for Traders
Education only. Not financial advice.
Overview
The Thrive Workbench is a data analytics platform built specifically for crypto traders. It lets you query Thrive’s entire data warehouse, market prices, derivatives metrics, on-chain flows, signals, sentiment, and more, using SQL, natural language, or Python. If the dashboard is your cockpit, the Workbench is your engine room: the place where you build, test, and refine the analysis that drives your trading decisions.
You do not need to be a programmer to use it. Thrive’s AI cells let you ask questions in plain English and get SQL queries, charts, and analysis back automatically. But if you learn even basic SQL, you unlock a level of analytical depth that no pre-built dashboard can match.
SQL Basics for Traders
SQL (Structured Query Language) is the language databases understand. You do not need to master it, you need to know five keywords and how to combine them. That is enough to answer 90% of the analytical questions you will ever have.
SELECT and WHERE
SELECT tells the database which columns you want. WHERE filters the rows. Together, they answer the question: “Show me these fields for rows that match this condition.”
Example: “Show me the price and 24h volume for Bitcoin.”
SELECT price, volume_24h FROM market_data WHERE symbol = 'BTC'
ORDER BY
Sorts your results. Add DESC for descending (largest first) or ASC for ascending (smallest first).
SELECT symbol, price_change_24h FROM market_data ORDER BY price_change_24h DESC LIMIT 10
This returns the top 10 gainers in the last 24 hours.
GROUP BY
Groups rows together and lets you run aggregate functions (COUNT, SUM, AVG, MAX, MIN) on each group. This is how you answer questions like “What is the average funding rate by asset?”
SELECT symbol, AVG(funding_rate) as avg_funding FROM derivatives_data GROUP BY symbol ORDER BY avg_funding ASC
JOIN
Combines data from two tables based on a shared column. This is where the Workbench becomes truly powerful, you can correlate derivatives data with on-chain flows, or signals with price performance.
SELECT m.symbol, m.price, s.signal_type, s.confidence FROM market_data m JOIN signals s ON m.symbol = s.symbol WHERE s.confidence > 70 ORDER BY s.confidence DESC
You do not need to memorize this
Thrive Data Schema Overview
Thrive’s data warehouse is organized into logical tables. Knowing what tables exist and what columns they contain is the key to asking the right questions. Here are the core tables you will use most often.
| market_data | Prices, volumes, market caps, 24h changes. The foundation of most queries. |
| derivatives_data | Funding rates, open interest, long/short ratios, liquidations. Essential for derivatives traders. |
| onchain_flows | Smart money transactions, exchange netflows, whale movements. On-chain intelligence. |
| signals | Live-feed prints with scores, timestamps, and the data behind each row. |
| sentiment_data | Social sentiment scores, trending topics, fear & greed. Market mood data. |
| whale_transactions | Large transaction alerts with wallet labels and amounts. |
In the Workbench, use AI Chat to describe what you want in plain language, it will run the right analysis for you. In notebook mode you can still write SQL cells when you prefer direct queries.
Writing Your First Query
Open the Workbench
Create a new notebook
Add a SQL cell
Run the query
Saving and Organizing Notebooks
Notebooks auto-save as you work. You can organize them into folders, tag them, and add descriptions. Build a library of reusable analyses: “Weekly Funding Review,” “Smart Money Divergence Scan,” “Post-Trade Analysis Template.” You can also share notebooks publicly with a link or fork other users’ public notebooks as starting points.
Using AI Cells for Natural Language Analysis
AI cells accept plain English questions and return SQL queries, results, and visualizations. They are the fastest way to analyze data if you are not comfortable writing SQL, and even experienced SQL users find them faster for exploratory analysis.
Type a question like “Which assets had the largest smart money inflows this week while retail sentiment was bearish?” and the AI generates the query, runs it, and presents the results with an explanation. You can then modify the generated SQL, add chart visualizations, or ask follow-up questions.
Credit Costs
Different Workbench operations consume different amounts of AI credits. SQL cells that you write yourself cost nothing to run, they execute directly against the database. AI-powered operations consume credits based on complexity.
| Manual SQL cell | Free, no credits consumed |
| AI Instant mode | ~15 credits per query |
| AI Deep Research | ~250 credits per analysis |
| Chart generation | Free (built into query results) |
| Python execution | Free, runs on Thrive's compute |
Credit efficiency
Put this lesson to work
Free on Thrive, no account needed.