How can I force a WINDOW function in MySQL to show 'NULL' unless complete window frame is available?
I want to get moving sum and moving average on each date for last 7 days (including current day). I used WINDOW function and used ROWS BETWEEN to frame the function which calculates correctly, but it shows sum and avg…