STRASMORE/EXPLORE 3,171 QUERIES

Trailing twelve-month dividend income by holding

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-07, from Portfolio Analysis in SQL: Weights to Drawdown.

as of table 6×6read in context →
Trailing twelve-month dividend income by holding — 6 rows by 6 columns, computed from US exchange, SIP and OPRA data.
tickerpayment_countttm_dividend_per_sharettm_incomeincome_yield_pctblend_ttm_income
KO42.16302.432055.8
XOM44.126182.482055.8
JNJ45.28475.22.062055.8
MSFT43.64163.80.692055.8
AAPL41.06127.20.322055.8
NVDA40.5241.60.222055.8
Rows × columns
6 × 6
Computed
Completeness
No missing values
Source
US exchange, SIP and OPRA market data
Licence
Strasmore terms · free, no signup
Formats
JSON · CSV · the SQL below

What each column holds

Column definitions for Trailing twelve-month dividend income by holding, derived from the stored result.
ColumnTypeRangeNotes
ticker text 6 distinct values (AAPL, JNJ, KO…)
payment_count number every row is 4 count
ttm_dividend_per_share number 0.52 to 5.28
ttm_income number 41.6 to 630
income_yield_pct number 0.22 to 2.48 percent
blend_ttm_income number every row is 2,055.8

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 'AAPL' AS ticker, 120 AS shares
    UNION ALL SELECT 'MSFT', 45
    UNION ALL SELECT 'NVDA', 80
    UNION ALL SELECT 'KO',   300
    UNION ALL SELECT 'JNJ',  90
    UNION ALL SELECT 'XOM',  150
),
marks AS
(
    SELECT
        ticker,
        argMax(toFloat64(close), (date, _ingest_time)) AS last_close
    FROM global_markets.stocks_daily_aggs
    WHERE ticker IN ('AAPL', 'MSFT', 'NVDA', 'KO', 'JNJ', 'XOM')
      AND date >= today() - 30
    GROUP BY ticker
),
divs AS
(
    SELECT
        ticker,
        ex_dividend_date,
        max(toFloat64(cash_amount)) AS cash_amount
    FROM global_markets.stocks_dividends
    WHERE ticker IN ('AAPL', 'MSFT', 'NVDA', 'KO', 'JNJ', 'XOM')
      AND currency = 'USD'
      AND ex_dividend_date >= today() - 365
      AND ex_dividend_date <  today()
    GROUP BY ticker, ex_dividend_date
),
ttm AS
(
    SELECT
        ticker,
        count()          AS payment_count,
        sum(cash_amount) AS dps
    FROM divs
    GROUP BY ticker
),
income AS
(
    SELECT
        h.ticker                             AS ticker,
        t.payment_count                      AS payment_count,
        round(t.dps, 4)                      AS ttm_dividend_per_share,
        round(h.shares * t.dps, 2)           AS ttm_income,
        round(100 * t.dps / m.last_close, 2) AS income_yield_pct
    FROM holdings AS h
    INNER JOIN ttm   AS t ON t.ticker = h.ticker
    INNER JOIN marks AS m ON m.ticker = h.ticker
)
SELECT
    ticker,
    payment_count,
    ttm_dividend_per_share,
    ttm_income,
    income_yield_pct,
    round(sum(ttm_income) OVER (), 2) AS blend_ttm_income
FROM income
ORDER BY ttm_income DESC
⌘/Ctrl + Enter

Work with this data in your AI assistant

Opens ready to query, with this page's data. Free, no account.

More from this analysisPortfolio Analysis in SQL: Weights to Drawdown
Position weights from last close times share count table 6×6 → Weekly peak-to-trough drawdown of the blended portfolio series 53×4 → Pairwise daily return correlation, trailing year ranking 15×2 → Cumulative weight and the Herfindahl concentration index ranking 6×4 → Capital needed for $12,000 a year of distributions, by fund yield table 10×5 → Payout ratio by yield band: US payers, $1B+ market cap, latest snapshot table 4×5 → See all 3,171 queries →