MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
select e.Name_ as [Name],E.Full_Name,count(distinct o.Quote_Number)Q, TotalCount=(SELECT Count(o.quote_Number) FROM SnivalTest_ED..Opportunity o) from SnivalTest_ED..Opportunity o inner join SnivalTest_ED..Employee e on o.Account_Manager_Id = e.Employee_Id inner join SnivalTest_ED..ctLine_of_Business lob on e.Line_of_Business_Id = lob.ctLine_of_Business_Id inner join SnivalTest_ED..ctCompany_Code cc on e.Company_Code_Id = cc.ctCompany_Code_Id inner join @TempListCompanyCode tcc on cc.company_code_name = tcc.CompanyCode inner join @TempListLOB tlob on lob.line_of_business_name = tlob.lob where o.Status = 4 -- Won and e.Name_ = isnull(@Employee, e.Name_) and o.Won_Date >= @STARTDATE and o.Won_Date <= @ENDDATE and ISNULL(o.Completion,0) = 0 AND ISNULL(o.NO_QUOTE___T_AND_M,'0') IN ('No','0') AND ISNULL(o.WARRANTY,'No') = 'No' group by e.Name_,E.Full_Name order by e.Name_
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.