AVG()
function with the boolean expression order_date = customer_pref_delivery_date
to calculate the ratio of immediate orders to total orders.ROUND()
function to round the result to two decimal places.immediate_percentage
using the AS
keyword.Delivery
table.erDiagram Delivery { int delivery_id PK int customer_id date order_date date customer_pref_delivery_date }