Last active
August 23, 2019 09:27
-
-
Save gnsx/06afdb0eb39bc86b4819e579da13616b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Athena Query to get data between dates using epoch for timestamp*/ | |
SELECT distinct(unique_id) AS unique_id , | |
second_field | |
FROM "table_name" | |
WHERE from_unixtime(epoch_time,'Asia/Kolkata') < (CURRENT_DATE - interval '1' DAY) | |
AND from_unixtime(epoch_time,'Asia/Kolkata') > (CURRENT_DATE - interval '2' DAY) | |
AND second_field = 'UPLIFTED' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment