Deduplication
Keep the most recent record per user
ROW_NUMBER() assigns a sequence number within each user partition, ordered by last_seen descending. QUALIFY filters to keep only the first row (most recent) for each user.
Keep the first occurrence
Deduplicate by multiple columns
Date range filtering
Last N days
Specific date range
Current month
Previous month
Rolling 12 months
Price-constrained queries
Maximum price per 1000 rows
Tiered pricing selection
Aggregations
Count by category
Daily aggregation
Monthly aggregation
Top N by category
Identity lookups
Rosetta Stone unique IDs
Filter by identifier type
Exclude specific identifier types
Access Rosetta Stone from dataset
Company-scoped Rosetta Stone
Query normalized data from a specific company only:company_data._rosetta_stone limits the query to datasets owned by your company. Replace company_data with a partner’s company slug to query their shared data.
Combine normalized and original columns
Join Rosetta Stone attributes with non-normalized dataset columns:company_data."123"._rosetta_stone) lets you select both normalized Rosetta Stone attributes and original dataset columns in the same query.

