Ensure Correct Numeric Ordering in Visit ID Comparison | Amazon SQL Question