Assuming I have initial table of date and each order value of the date: |date_order |gross_order| |---------- |-----------| |25 Nov | 50 | |27 Nov |300