Last active
December 11, 2015 03:29
-
-
Save dexterbt1/4538241 to your computer and use it in GitHub Desktop.
quick overview of the coop push status
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 | |
pcd.push_date, pci.priority, pci.content_automediaid, sum(pcir.started) run_started, sum(pcir.completed) run_completed, | |
pci.max_runs, stats_base, sum(pcir.stats_billed) stats_billed | |
from | |
push_cycle_day pcd inner | |
join push_cycle_item pci on (pcd.id=pci.push_cycle_day_id) | |
left outer join push_cycle_item_run pcir on (pci.id=pcir.push_cycle_item_id) | |
where | |
pcd.push_date=date(now()) | |
group by pci.id | |
order by priority; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment