Diogo Baeder
04/20/2022, 2:57 PMKishore G
Diogo Baeder
04/20/2022, 4:13 PMselect distinct weight from weights
inner join brands_metrics on weights.pmxid = brands_metrics.pmxid
inner join filters on weights.pmxid = filters.pmxid
where
brand_id = 1000226 and
filters.name = 'gender' and
contains(filters."values", 2) and
weights.date > 20130501 and
weights.date < 20130515 and
brands_metrics.date > 20130501 and
brands_metrics.date < 20130515 and
filters.date > 20130501 and
filters.date < 20130515
here, brands_metrics
, weights
and filters
are all tables that contain a date
column set as the time column upon table creation.