Sobes.tech
Middle

Vazifa #3 Mijozlarni topish kerak, ularning buyurtmalari orasidagi bo'shliq > 60 kun. Ushbu mijozlar uchun maksimal bo'shliq (gap_days) ni chiqarish. Buyurtmalar jadvali: | 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] | Natija: | customer_id | gap_days | |-------------|----------| | 1 | 123 | | 2 | 120 |