Mencari nilai minimum dalam window frame. Berguna untuk tracking historical lows.
Same as inputMIN(expression) OVER ([PARTITION BY ...] [ORDER BY ...])Column yang akan dicari minimumnya
1 SELECT 2 date, 3 price, 4 MIN(price) OVER (ORDER BY date) as historical_low, 5 price - MIN(price) OVER (ORDER BY date) as above_low 6 FROM stock_prices;
Track harga terendah historis.
Sudah paham MIN_WINDOW? Latih langsung di browser
Latihan interaktif, langsung di browser.