Sobes.tech
Middle

Ülesanne #3 Leia kliendid, kelle tellimuste vahe on suurem kui 60 päeva. Näidake nende klientide jaoks suurim vahe (gap_days). Tellimustabel: | order_id | customer_id | order_dt | |----------|-------------|------------| | 1 | 1 | [phone] | | 2 | 1 | [phone] | | 3 | 1 | [phone] | | 4 | 1 | [phone] | | 5 | 2 | [phone] | | 6 | 2 | [phone] | | 7 | 3 | [phone] | Lõplik tulemus: | customer_id | gap_days | |-------------|----------| | 1 | 123 | | 2 | 120 |