Annual dividend income per position, with a running portfolio total
Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-10-08, from Build a Dividend Income Tracker With SQL.
| ticker | annual_income | running_total |
|---|---|---|
| O | 488.7 | 488.7 |
| KO | 424 | 912.7 |
| XOM | 329.6 | 1242.3 |
| JNJ | 268 | 1510.3 |
| PG | 261.24 | 1771.54 |
| MSFT | 156.8 | 1928.34 |
- Rows × columns
- 6 × 3
- Computed
- Completeness
- No missing values
- Source
- US exchange, SIP and OPRA market data
- Licence
- Strasmore terms · free, no signup
What each column holds
| Column | Type | Range | Notes |
|---|---|---|---|
ticker |
text | 6 distinct values (JNJ, KO, MSFT…) | |
annual_income |
number | 156.8 to 488.7 | |
running_total |
number | 488.7 to 1,928.34 |
Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.
Run it yourself
This is the exact query behind the result above. Change a ticker, a date or a column and run it against the warehouse — no account, no key. The no-signup tier is smaller than the one this page was computed on; a query that reaches past it comes back saying which plan runs it.
WITH holdings AS
(
SELECT
tupleElement(h, 1) AS ticker,
tupleElement(h, 2) AS shares
FROM
(
SELECT arrayJoin([
('KO', 200.0),
('PG', 60.0),
('JNJ', 50.0),
('MSFT', 40.0),
('XOM', 80.0),
('O', 150.0)
]) AS h
)
),
declared AS
(
SELECT
ticker,
argMax(cash_amount, ex_dividend_date) AS cash_per_payment,
argMax(frequency, ex_dividend_date) AS pays_per_year
FROM global_markets.stocks_dividends
WHERE ticker IN ('KO', 'PG', 'JNJ', 'MSFT', 'XOM', 'O')
AND currency = 'USD'
AND frequency IN (1, 2, 4, 12)
AND ex_dividend_date >= today() - 400
AND ex_dividend_date <= today() + 120
GROUP BY ticker
)
SELECT
ticker,
annual_income,
round(sum(annual_income) OVER (ORDER BY annual_income DESC
ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW), 2) AS running_total
FROM
(
SELECT
h.ticker AS ticker,
round(toFloat64(d.cash_per_payment) * d.pays_per_year * h.shares, 2) AS annual_income
FROM holdings AS h
INNER JOIN declared AS d ON d.ticker = h.ticker
)
ORDER BY annual_income DESC
Work with this data in your AI assistant
Opens ready to query, with this page's data. Free, no account.