Skip to content

Commit

Permalink
docs: add en.md
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkasany committed Jan 6, 2024
1 parent 3978996 commit bf3624c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ We can use the `RANK()` window function to rank the orders of each user in ascen
```sql
# Write your MySQL query statement below
SELECT
ROUND(SUM(order_date = customer_pref_delivery_date) / COUNT(1) * 100, 2) AS immediate_percentage
ROUND(AVG(order_date = customer_pref_delivery_date) * 100, 2) AS immediate_percentage
FROM Delivery
WHERE
(customer_id, order_date) IN (
Expand All @@ -100,7 +100,7 @@ WITH
FROM Delivery
)
SELECT
ROUND(SUM(order_date = customer_pref_delivery_date) / COUNT(1) * 100, 2) AS immediate_percentage
ROUND(AVG(order_date = customer_pref_delivery_date) * 100, 2) AS immediate_percentage
FROM T
WHERE rk = 1;
```
Expand Down

0 comments on commit bf3624c

Please sign in to comment.