Access comprehensive financial and market data through our database. Below you'll find table schemas, key fields, and example queries to get you started.
-- Get top performing stocks by revenue growth
SELECT
symbol,
companyName,
revenue,
revenueGrowth
FROM annual_income_statement
JOIN profile USING (symbol)
WHERE revenueGrowth > 0.20
AND date >= '2023-01-01'
ORDER BY revenueGrowth DESC
LIMIT 5;Assets, liabilities, and shareholders' equity at a specific point in time.
SELECT
symbol,
date,
totalAssets,
totalLiabilities,
totalStockholdersEquity,
cashAndCashEquivalents,
totalCurrentAssets
FROM annual_balance_sheet
WHERE date >= '2023-01-01'
AND symbol IN ('AAPL', 'MSFT', 'GOOGL')
ORDER BY symbol, date DESC;Revenue, expenses, and profit/loss over a reporting period.
SELECT
symbol,
date,
revenue,
netIncome,
grossProfit,
operatingIncome,
EPS
FROM annual_income_statement
WHERE date >= '2023-01-01'
AND revenue > 1000000000
ORDER BY revenue DESC;Cash receipts and payments from operating, investing, and financing activities.
SELECT
symbol,
date,
netCashProvidedByOperatingActivities,
netCashUsedForInvestingActivities,
netCashUsedProvidedByFinancingActivities,
freeCashFlow
FROM annual_cash_flow
WHERE date >= '2023-01-01'
AND freeCashFlow > 0
ORDER BY freeCashFlow DESC;Year-over-year and quarter-over-quarter growth metrics and ratios.
SELECT
symbol,
date,
revenueGrowth,
netIncomeGrowth,
operatingCashFlowGrowth,
fiveYRevenueGrowthPerShare
FROM annual_financial_growth
WHERE date >= '2023-01-01'
AND revenueGrowth > 0.10
ORDER BY revenueGrowth DESC;Company information, industry classification, and basic business details.
SELECT
symbol,
companyName,
sector,
industry,
marketCap,
fullTimeEmployees
FROM profile
WHERE sector = 'Technology'
AND isActivelyTrading = true
ORDER BY marketCap DESC;Important financial ratios, valuation metrics, and performance indicators.
SELECT
symbol,
peRatioTTM,
pbRatioTTM,
roeTTM,
debtToEquityTTM,
dividendYieldTTM
FROM key_metrics_ttm
WHERE peRatioTTM > 0
AND peRatioTTM < 50
ORDER BY roeTTM DESC;