Homeโ€บQuery Libraryโ€บAmazon

Which US states generate the most revenue from your Amazon store?

Geographic revenue distribution reveals market concentration and helps inform decisions about advertising targeting, FBA warehouse placement, and regional pricing strategies.

๐Ÿ“Š Amazon Seller Central๐Ÿ‘ฅ Amazon sellers๐Ÿ”ค Plain-English โ†’ SQL

This is part of the Taptic Data Amazon query library. Explore related queries: SQL query for Amazon return rate by SKU, SQL query for Amazon net margin after FBA fees, SQL query for Amazon buy box percentage by ASIN, and more.

Show me Amazon revenue by state for the last 12 months
โ†“
Amazon Revenue by State โ€” generated by Taptic Data AI
SELECT
  o.ship_state                                   AS state,
  COUNT(DISTINCT o.amazon_order_id)             AS orders,
  SUM(i.quantity)                               AS units_sold,
  ROUND(SUM(i.item_price * i.quantity)::numeric, 2) AS gross_revenue,
  ROUND(AVG(i.item_price * i.quantity)::numeric, 2) AS avg_order_value,
  ROUND(SUM(i.item_price * i.quantity)::numeric * 100
    / NULLIF(SUM(SUM(i.item_price * i.quantity)) OVER ()::numeric, 0), 1) AS pct_of_total
FROM amazon_orders o
JOIN amazon_order_items i ON i.amazon_order_id = o.amazon_order_id
WHERE o.order_status NOT IN ('Canceled', 'Cancelled')
  AND i.item_price IS NOT NULL
  AND o.ship_state IS NOT NULL
  AND o.ship_state != ''
  AND o.purchase_date::date >= NOW() - INTERVAL '12 months'
GROUP BY o.ship_state
ORDER BY gross_revenue DESC
LIMIT 25
Schema-aware SQL generated from plain English18 lines

This query was generated by Taptic Data from plain English against a real Amazon Seller Central schema. In Taptic, you type the question โ€” the AI writes the SQL, runs it, and returns the result. You can edit the SQL, ask for explanations, and save it as a refreshable report.

Breaking it down line by line

  1. Joins orders to order_items to get SKU-level revenue aggregated by ship_state
  2. Window function SUM OVER () calculates percentage of total revenue per state without a subquery
  3. Filters out NULL and empty ship_state values which occur on digital or pending orders
  4. Average order value per state reveals regional purchasing patterns
  5. Ordered by revenue descending to show your biggest geographic markets first

Result description

Top 25 US states by Amazon revenue with orders, units, gross revenue, average order value, and percentage of total.

The business impact

Knowing where your customers are geographically helps optimize FBA inventory placement, target PPC campaigns by region, and identify underserved markets. A state contributing 15% of revenue with 3% of population might indicate an untapped opportunity in similar regions.

Common questions

How do I generate a "Amazon Revenue by State" query automatically?
In Taptic Data, type "Show me Amazon revenue by state for the last 12 months" and the AI generates schema-aware SQL against your real Amazon Seller Central data โ€” no manual writing required.
What database does this query work with?
This query is designed for Amazon Seller Central. Taptic reads your live schema so the generated SQL always matches your actual table and column names.
Can I edit the generated SQL?
Yes. Taptic shows you the exact SQL it generated. You can edit it directly, ask the AI to explain any line, or request a revision in plain English.
Can I save this as a scheduled report?
Yes. Once you run this query in Taptic, you can save it as a report, add charts and KPIs, and schedule it to email your team on any cadence โ€” daily, weekly, or monthly.

Skip the SQL. Ask the question.

In Taptic Data, you type "Show me Amazon revenue by state for the last 12 months..." and this SQL runs automatically against your real Amazon Seller Central data.

Try Taptic Free โ€” $29.99/mo

No credit card required. Connect your data source in under 5 minutes.