Instead Of MAX Use LAST_VALUE For Time-Based Data February 15, 2020·622 words There is a big difference between two built-in functions that you need to consider to avoid working with bad results.