Is it possible to have a sql query which pulls data per date and customer? Use case: Table 1 has items purchased by customers, with data of purchase Table 2 has all of the support tickets customers may have reached out for.
I am looking to filter table 2 data to customers who have purchased (in table 1) but also have contacted us either 10 days before or after the purchase.
So if Bob purchases a screw driver on 6/1/2022 (on table 1). i am looking to pull any calls from Bob between 5/21/22 to 6/10/22

Untested code using date range:
The
'[]'is included in thedaterangeto make the upper bound inclusive. In other words it will bump the upperdateup one.UPDATE
From here Date/time functions/operators this would seem to be possible in Athena/Presto: