The SCAN function is best used when you need a running total—a sum that accumulates row by row, with the accumulated value ...