Purchasing · asked in Claude

“Who are our biggest vendors by spend?”

Chuck's Flour Shop is the biggest vendor at $1,775, about 30% of the $6,003.63 in purchase order spend in the DEMO Fishbowl database.

Fishbowl MCP connectedin Claude
Who are our biggest vendors by spend?
✓Checked your Fishbowl data · 2 read-only queries · 0.4 s

Chuck's Flour Shop is the biggest vendor at $1,775, about 30% of the $6,003.63 in purchase order spend in the DEMO Fishbowl database. The top three vendors account for roughly two-thirds of the total.

RankVendorPOsSpendShare
1Chuck's Flour Shop3$1,775.0029.6%
2Johnson Manufacturing5$1,097.5218.3%
3A&B Distribution4$1,067.3017.8%
4Williams Treat Company4$863.2014.4%
5Brent's Food Supply3$519.008.6%
6Rocky Mountain Chocolate5$491.468.2%
7Mike's Salt4$148.902.5%
8One Stop Office Paper Shop2$41.250.7%
  • What counts as spend: PO line totals on issued, fulfilled and closed-short POs. The six bid requests are excluded, and this is not vendor bills or payments from accounting.
  • Period: every PO in the database was issued between July 10 and August 14, 2026, so this is all-time and only about five weeks of activity.
  • Ordered vs. received: received value matches ordered value to within cents for every vendor, so ranking by receipts gives the same order.
  • Zero-dollar vendors: Jill's Energy Source (2 POs) and Utah State Tax Commission (1 PO) have POs that total $0.
A real 28-second session on our demo Fishbowl, replayed faster.

Behind the scenes

What your admin sees in the query log for this conversation.

2read-only queries
0.4 stotal query time
0changes to your data
0rows stored

Every step the AI took

  1. 1
    Checked the saved queries
    6 saved queries
  2. 2
    Read the Fishbowl notes index
    13 topic notes
  3. 3
    Looked up a table · po
    51 columns
  4. 4
    Looked up a table · poitem
    31 columns
  5. 5
    Understand PO statuses and date range before ranking vendors by purchase spend
    ✓ passed read-only checkrow cap applied
    Show the SQL
    SELECT s.id, s.name, COUNT(*) AS poCount, MIN(po.dateIssued) AS firstIssued, MAX(po.dateIssued) AS lastIssued
    FROM po
    JOIN postatus AS s ON s.id = po.statusId
    GROUP BY s.id, s.name
    ORDER BY s.id
    LIMIT 101
    4 rows · 231 ms
  6. 6
    Rank vendors by total purchase order spend, excluding bid requests
    Now aggregating PO line totals by vendor for committed POs (issued through closed short), credit lines netted
    ✓ passed read-only checkrow cap applied
    Show the SQL
    SELECT v.name AS vendor, COUNT(DISTINCT po.id) AS poCount, ROUND(SUM(CASE WHEN pit.name LIKE '%Credit%' THEN -1 ELSE 1 END * pi.totalCost), 2) AS orderedSpend, ROUND(SUM(CASE WHEN pit.name LIKE '%Credit%' THEN -1 ELSE 1 END * pi.unitCost * COALESCE(pi.qtyFulfilled, 0)), 2) AS receivedSpend, SUM(pit.name LIKE '%Credit%') AS creditLines, COUNT(DISTINCT po.currencyId) AS currencies, MIN(DATE(po.dateIssued)) AS firstPO, MAX(DATE(po.dateIssued)) AS lastPO
    FROM po
    JOIN vendor AS v ON v.id = po.vendorId
    JOIN poitem AS pi ON pi.poId = po.id
    JOIN poitemtype AS pit ON pit.id = pi.typeId
    WHERE po.statusId IN (20, 30, 40, 50, 55, 60, 70)
    GROUP BY v.name
    ORDER BY orderedSpend DESC
    LIMIT 101
    10 rows · 208 ms

Every query is checked before it runs: reads only, no system tables or password fields, and a row cap on every result. The question and the SQL are logged for your admins. The data itself is not stored.

Ask this about your own Fishbowl

We'll set up ILC MCP on your Fishbowl and build the queries your team needs.