Daily dashboard main SQL