Get UPCs from your AI and paste the JSON belowSearch UPCs ↗
🌙
Dark
Retailer Filters — optional
?
Retailer FiltersFilter receipts by specific retailers. Select parent companies (e.g. Kroger) or specific banners (e.g. Walmart). Leave empty to include all retailers.
▼
Parent company
Retailer banner / real company
No selection — retailer block will not be included.
Brand Filter — optional
?
Brand FilterFilter by CAPTURE_BRAND or BARCODE_BRAND fields. Edit the pattern (e.g. 'LYSOL','LYSOL %') to match exactly. NVL line is added automatically.
▼
Search and select brands — you can add multiple at once
No brands selected.
Snowflake Table
?
Snowflake TableSelect the source table for your query. You can edit tables.js to add/remove tables without touching this file.
▼
Hero / Halo Mode
?
Hero / Halo ModeInclusive: Hero ⊂ Halo. Adds REMAINDER column. Exclusive: Hero ∩ Halo = ∅. Adds HALO column. Total Read: No CASE WHEN, filter only in WHERE.
▼
Hero UPCs
?
Hero UPCsHero = your target product. Gets CASE WHEN = 1 in SELECT. Paste JSON from the Claude project or add UPCs manually. You can have multiple Hero groups (e.g. HERO_WALMART, HERO_SAMS).
▼
Halo UPCs
WHERE only
?
Halo UPCsHalo = the full brand context. Only appears in the WHERE clause. Hero UPCs automatically excluded from Halo in the query.
▼
Add UPCs manually
Or paste JSON from your AI
Halo loaded0 UPCs
No Halo UPCs loaded...
Generated SQL
Add filters and/or UPCs to see the query...
Validation Table
#
UPC (10 digits)
UPC (12 digits)
Description
Role
Ready to generate
Add retailers, brands, or UPCs to build your Snowflake query.