STRASMORE/EXPLORE 3,256 QUERIES

yield_vs_peers

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-09, from aapl-dividend-for-thai-investors.

as of ranking 6×3read in context →
yield_vs_peers — 6 rows by 3 columns, computed from US exchange, SIP and OPRA data.
tickerttm_dividend_usdttm_yield_pct
AAPL1.060.32
MSFT3.640.69
JNJ5.282.06
KO2.12.41
PEP5.8054.55
VZ3.50258.14
Rows × columns
6 × 3
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 yield_vs_peers, derived from the stored result.
ColumnTypeRangeNotes
ticker text 6 distinct values (AAPL, JNJ, KO…)
ttm_dividend_usd number 1.06 to 5.805 US dollars
ttm_yield_pct number 0.32 to 8.14 percent

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 px AS
(
    SELECT
        ticker,
        argMax(close, date) AS close_usd
    FROM global_markets.stocks_daily_aggs
    WHERE ticker IN ('AAPL', 'MSFT', 'KO', 'PEP', 'JNJ', 'VZ')
      AND date >= today() - 30
    GROUP BY ticker
),
div AS
(
    SELECT
        ticker,
        round(sum(amount), 4) AS ttm_dividend_usd
    FROM
    (
        SELECT
            ticker,
            id,
            max(toFloat64(cash_amount)) AS amount
        FROM global_markets.stocks_dividends
        WHERE ticker IN ('AAPL', 'MSFT', 'KO', 'PEP', 'JNJ', 'VZ')
          AND ex_dividend_date > today() - 365
          AND ex_dividend_date <= today()
        GROUP BY ticker, id
    )
    GROUP BY ticker
)
SELECT
    px.ticker                                                    AS ticker,
    div.ttm_dividend_usd                                         AS ttm_dividend_usd,
    round(100 * div.ttm_dividend_usd / toFloat64(px.close_usd), 2) AS ttm_yield_pct
FROM px
INNER JOIN div ON div.ticker = px.ticker
ORDER BY px.ticker = 'AAPL' DESC, ttm_yield_pct ASC
⌘/Ctrl + Enter

Work with this data in your AI assistant

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