Get UPCs from your AI and paste the JSON below Search 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.
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.
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.
Generated SQL
Add filters and/or UPCs to see the query...
SELECT FROM ··· WHERE ···
Ready to generate
Add retailers, brands, or UPCs
to build your Snowflake query.