{"slug":"market-structure-and-break-of-structure","qid":"splits_check","label":"splits_check","post_title":"market-structure-and-break-of-structure","post_url":"/blog/lang/th/market-structure-and-break-of-structure#q-splits_check","columns":["ticker","splits_in_window","last_split_on_record"],"rows":[{"ticker":"AAPL","splits_in_window":0,"last_split_on_record":"2020-08-31"},{"ticker":"JPM","splits_in_window":0,"last_split_on_record":"ไม่พบในฐานข้อมูล"},{"ticker":"KO","splits_in_window":0,"last_split_on_record":"2012-08-13"},{"ticker":"MSFT","splits_in_window":0,"last_split_on_record":"2003-02-18"},{"ticker":"QQQ","splits_in_window":0,"last_split_on_record":"ไม่พบในฐานข้อมูล"},{"ticker":"SPY","splits_in_window":0,"last_split_on_record":"ไม่พบในฐานข้อมูล"}],"shape":"ranking","sql":"SELECT\n    t.ticker                                  AS ticker,\n    toUInt32(ifNull(s.splits_in_window, 0))   AS splits_in_window,\n    if(empty(ifNull(s.last_split_on_record, '')), 'ไม่พบในฐานข้อมูล', s.last_split_on_record) AS last_split_on_record\nFROM\n(\n    SELECT arrayJoin(['AAPL', 'JPM', 'KO', 'MSFT', 'QQQ', 'SPY']) AS ticker\n) AS t\nLEFT JOIN\n(\n    SELECT\n        ticker,\n        countIf(execution_date >= '2021-01-01') AS splits_in_window,\n        toString(max(execution_date))           AS last_split_on_record\n    FROM global_markets.stocks_splits\n    WHERE ticker IN ('AAPL', 'JPM', 'KO', 'MSFT', 'QQQ', 'SPY')\n    GROUP BY ticker\n) AS s ON s.ticker = t.ticker\nORDER BY t.ticker","computed_at":"2026-09-22T15:02:10.172159+00:00","elapsed":0.081782916}