Created
November 27, 2015 23:07
-
-
Save andrechavesg/5499b6470bd0039e0dea 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
select count(distinct usuario_id) from compra c where c.momentoDaCompra > | |
= now() - interval 30 day and c.momentoDaCompra <= now() - interval 29 day; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment