Created
February 17, 2015 08:49
-
-
Save zettamax/34230ddedab548c07549 to your computer and use it in GitHub Desktop.
Free trial pays group by date
This file contains hidden or 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 date(date) date_pay, count(*) cs from payments pm where pm.product_id in (select product_id from products pr where status = 'on' and params_provider like '%free_trial%') and log_id != 0 group by date_pay; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment