sql changed to take into account that days campaigns.