Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT client, COUNT(id) AS sales, MIN(time_ts),
- FROM [bigquery-public-data:hacker_news.comments]
- WHERE TIMESTAMP(MIN(time_ts)) > DATE_ADD(USEC_TO_TIMESTAMP(NOW()), -12, 'MONTH')
- GROUP BY client
- HAVING COUNT(id) = 2;
Add Comment
Please, Sign In to add comment