May be this is what you want if not so show me the expected output for the input set i have taken.....CREATE TABLE #test(PhoneNumber int, Company varchar(max),DialedStartdate datetime, DialedEndDate datetime)INSERT INTO #test SELECT 1234,'AAA','2011-03-02','2011-03-02' UNION ALLSELECT 1234,'AAA','2011-03-02','2011-03-02' UNION ALLSELECT 5648,'AAA','2011-03-10','2011-03-10' UNION ALLSELECT 5648,'AAA','2011-03-10','2011-03-10' UNION ALLSELECT 5648,'AAA','2011-03-10','2011-03-10' UNION ALLSELECT 5648,'BBB','2011-03-02','2011-03-02' UNION ALLSELECT 5648,'BBB','2011-03-02','2011-03-02' UNION ALLSELECT 1234,'BBB','2011-03-02','2011-03-02' UNION ALLSELECT 9999,'zzz','2014-06-11','2014-06-11' UNION ALLSELECT 9999,'zzz','2014-06-11','2014-06-11' SELECT DISTINCT Company , COUNT(DialedStartdate) OVER (PARTITION BY Company,DialedStartdate) AS NoofMeetings , DialedStartdateFROM #test
---------------Murali KrishnaYou live only once ..If you do it right once is enough.......