STRASMORE/EXPLORE 2,170 QUERIES 22Y EQUITIES · 12Y OPTIONS

2,170 answered market questions

every one with its exact SQL, its result and the date it was computed · free, no signup

Qualified Dividend Holding Period: 61 Days
Every 121-day window around a Coca-Cola ex-dividend dateseries · 2026-08-22 · 14×6Preview: a 14-point series, ending higher. How long after the ex-date the cash actually arrivesranking · 2026-08-22 · 10×3Preview: 10 ranked values, largest first. Days between consecutive ex-dividend dates, against the 121-day windowranking · 2026-08-22 · 6×3Preview: 6 ranked values, smallest first.
Every 121-day window around a Coca-Cola ex-dividend date

Every 121-day window around a Coca-Cola ex-dividend date

most recentas of series 14×6read in context →
Every 121-day window around a Coca-Cola ex-dividend date — 14 rows by 6 columns, computed from US exchange, SIP and OPRA data.
ex_dateex_date_labelwindow_openswindow_closescalendar_days_in_windowtrading_sessions_in_window
2023-03-16Mar 16, 2023Jan 15May 1512183
2023-06-15Jun 15, 2023Apr 16Aug 1412183
2023-09-14Sep 14, 2023Jul 16Nov 1312185
2023-11-30Nov 30, 2023Oct 1Jan 2912182
2024-03-14Mar 14, 2024Jan 14May 1312183
2024-06-14Jun 14, 2024Apr 15Aug 1312184
2024-09-13Sep 13, 2024Jul 15Nov 1212186
2024-11-29Nov 29, 2024Sep 30Jan 2812182
2025-03-14Mar 14, 2025Jan 13May 1312184
2025-06-13Jun 13, 2025Apr 14Aug 1212183
2025-09-15Sep 15, 2025Jul 17Nov 1412186
2025-12-01Dec 1, 2025Oct 2Jan 3012183
2026-03-13Mar 13, 2026Jan 12May 1212184
2026-06-15Jun 15, 2026Apr 16Aug 1412184
the exact SQL behind every number
SELECT
    toString(x.ex_date)                       AS ex_date,
    formatDateTime(x.ex_date, '%b %e, %Y')    AS ex_date_label,
    formatDateTime(x.ex_date - 60, '%b %e')   AS window_opens,
    formatDateTime(x.ex_date + 60, '%b %e')   AS window_closes,
    121                                       AS calendar_days_in_window,
    countDistinct(s.date)                     AS trading_sessions_in_window
FROM
(
    SELECT DISTINCT ex_dividend_date AS ex_date
    FROM global_markets.stocks_dividends
    WHERE ticker = 'KO'
      AND cash_amount > 0
      AND ex_dividend_date >= '2023-01-01'
      AND ex_dividend_date <= today() - 61
) AS x
CROSS JOIN
(
    SELECT date
    FROM global_markets.stocks_daily_aggs
    WHERE ticker = 'SPY'
      AND date >= '2022-10-01'
      AND date <= today()
) AS s
WHERE s.date >= x.ex_date - 60
  AND s.date <= x.ex_date + 60
GROUP BY x.ex_date
ORDER BY x.ex_date
$