Updated salesAnalytics' sqls.