How do I write a query to get thisdoc cntS55 4I have two of the same records in the table but their Titles are different so instead of the count coming out to 5 how do I get the count to come out to 4Here's the table info:CREATE TABLE [dbo].[Test]( [FO] [varchar](3) NULL, [doc] [varchar](4) NULL, [clm] [char] (6) NULL, [cos] [char] (6) NULL, [FileDate] [char] (30) NULL, [DDSRcpt] [char](30) NULL, [Title] [varchar](3) NULL) ON [PRIMARY]insert into Testselect '311', 'S55', '458963', '458963', '12/14/2010', '05/23/2011', 'T2' union allselect '311', 'S55', '256983', '256983', '11/03/2010', '07/05/2011', 'T16' union allselect '311', 'S55', '129653', '129653', '01/28/2011', '04/20/2011', 'T16' union allselect '311', 'S55', '129653', '129653', '01/28/2011', '04/20/2011', 'T2' union allselect '315', 'S55', '457884', '457884', '10/01/2010', '05/23/2011', 'T16'The bold is the same but I want it to be counted as one record.