0
← Exercises/
Fundamentals•4 of 12
FundamentalsBeginner

Express Fulfillment Order Queue

Scenario

A luxury fashion e-commerce warehouse has a customer SLA guaranteeing same-day dispatch for express orders over $250. The fulfillment operations lead needs an active queue of orders marked for express delivery that haven't shipped yet.

Task
Filter the `fulfillment_queue` table for orders where: - `shipping_tier` is `'Express'` - `fulfillment_status` is **not** `'shipped'` - `total_price` is greater than or equal to **$250.00** Return: 1. `order_id` 2. `customer_email` 3. `total_price` 4. `fulfillment_status` Order the result by `total_price` descending. For ties, sort by `order_id` ascending.
Expected Output Format

Express delivery orders >= $250 still pending or processing, sorted by price descending.

Input Tables & Sample Data0 tables
Loading database schema...
Need a hint?
query.sql|Local Sandbox
Loading SQL editor...
Click "Run" or press ⌘ + Enter to execute your query

About the “Express Fulfillment Order Queue” SQL Problem

Business Scenario

A luxury fashion e-commerce warehouse has a customer SLA guaranteeing same-day dispatch for express orders over $250. The fulfillment operations lead needs an active queue of orders marked for express delivery that haven't shipped yet.

Expected Output & Criteria

Express delivery orders >= $250 still pending or processing, sorted by price descending.

Database Table Schema (PostgreSQL DDL)

PostgreSQL 16 WASM

This challenge executes directly against the following relational schema in your browser:

CREATE TABLE fulfillment_queue (
        order_id INT PRIMARY KEY,
        customer_email VARCHAR(120) NOT NULL,
        shipping_tier VARCHAR(30) NOT NULL,
        total_price NUMERIC(10, 2) NOT NULL,
        fulfillment_status VARCHAR(30) NOT NULL,
        placed_at TIMESTAMP NOT NULL
      );

Target SQL Clauses & Operators

WHEREANDORDER BY

Want more Fundamentals practice?

Explore the full syllabus of 12 exercises, syntax guides, and interview pitfalls.

View Fundamentals Track→