add remove split language chart show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
1 rows affected
1 rows affected
1 rows affected
1 rows affected
1 rows affected
pickup_date return_date return_date_minue_pickup_date same_month days_pickup_date_same days_pickup_date_not_same
2020-03-01 2020-03-12 11 same_month 11 0
2020-03-01 2020-03-22 21 same_month 21 0
2020-03-11 2020-03-22 11 same_month 11 0
2020-02-11 2020-03-22 40 not same_month 18 22
2020-01-01 2020-01-22 21 same_month 21 0
pickup_date return_date pickup_month return_month sum1 sum2 final_total
2020-01-01 2020-01-22 2020-01 2020-01 21 0 21
2020-02-11 2020-03-22 2020-02 2020-03 18 22 18
2020-03-01 2020-03-12 2020-03 2020-03 43 22 65
2020-03-01 2020-03-22 2020-03 2020-03 43 22 65
2020-03-11 2020-03-22 2020-03 2020-03 43 22 65
5 rows affected
pickup_date return_date date_ranges
2020-01-01 2020-01-22 [2020-01-01,2020-02-01)
2020-02-11 2020-03-22 [2020-02-01,2020-03-01)
2020-03-01 2020-03-12 [2020-03-01,2020-04-01)
2020-03-01 2020-03-22 [2020-03-01,2020-04-01)
2020-03-11 2020-03-22 [2020-03-01,2020-04-01)
pickup_date return_date total partial_mth parital_not_mth sum
2020-01-01 2020-01-22 21 21 0 21
2020-02-11 2020-03-22 40 18 22 18
2020-03-01 2020-03-12 11 11 0 65
2020-03-01 2020-03-22 21 21 0 65
2020-03-11 2020-03-22 11 11 0 65