In MySQL, the default window frame for window functions like AVG() is RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW when no explicit frame is specified.

What This Means:

This means the function operates on all rows in the partition up to and including the current row.

OVER (PARTITION BY col_name ORDER BY col_name RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING)

The UNBOUNDED FOLLOWING window frame is used in a window function to define the window as starting from the current row and extending to the last row in the partition. It's useful when you want to include all rows from the current position to the end of the partition.