{"slug":"capital-market-vs-money-market","qid":"worst_fall","label":"worst_fall","post_title":"capital-market-vs-money-market","post_url":"/blog/lang/pcm/capital-market-vs-money-market#q-worst_fall","columns":["ticker","worst_fall_pct"],"rows":[{"ticker":"CSCO","worst_fall_pct":38.6},{"ticker":"IBM","worst_fall_pct":37.5},{"ticker":"CVX","worst_fall_pct":28.9},{"ticker":"PG","worst_fall_pct":24.6},{"ticker":"JNJ","worst_fall_pct":23.6},{"ticker":"KO","worst_fall_pct":20.9},{"ticker":"XOM","worst_fall_pct":20.7}],"shape":"ranking","sql":"WITH daily AS (\n    SELECT\n        ticker,\n        date,\n        toFloat64(any(close)) AS c\n    FROM global_markets.stocks_daily_aggs\n    WHERE ticker IN ('KO', 'JNJ', 'XOM', 'CVX', 'PG', 'IBM', 'CSCO')\n      AND date >= today() - 1830\n    GROUP BY ticker, date\n),\npeaks AS (\n    SELECT\n        ticker,\n        date,\n        c,\n        max(c) OVER (PARTITION BY ticker ORDER BY date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS peak\n    FROM daily\n)\nSELECT\n    ticker,\n    round(100 * abs(min(c / peak - 1)), 1) AS worst_fall_pct\nFROM peaks\nGROUP BY ticker\nORDER BY worst_fall_pct DESC","computed_at":"2026-10-16T15:22:42.567217+00:00","elapsed":0.251122555}