Tesla sensors take multiple measurements throughout the day. To analyze the data, you need to sum the measurements based on their sequence order within each day.
Write an SQL query to calculate the sum of measurements for odd-numbered observations and even-numbered observations for each day.
Rules:
- Within each day, measurements are ordered by measurement_time ascending.
- The first measurement of the day is sequence 1 (Odd), the second is 2 (Even), etc.
- Output columns: measurement_day, odd_sum, and even_sum.
- Results must be sorted by measurement_day in ascending order.