This question evaluates proficiency in SQL querying, including aggregation, date-based filtering, percentage calculation with rounding, and the ability to identify first-ever orders per customer.
LeetCode 1173. Immediate Food Delivery I – Write an SQL query to calculate the percentage of immediate (same-day) orders, rounded to two decimals. Follow-up (LeetCode 1174. Immediate Food Delivery II) – Extend the query to compute the percentage of immediate first-ever orders for each customer.
https://leetcode.com/problems/immediate-food-delivery-i/description/ https://leetcode.com/problems/immediate-food-delivery-ii/description/