Sorry here's the table info:CREATE TABLE [dbo].[testtable]( [doc] [varchar](3) NULL, [fo] [varchar](3) NULL, [clm] [char] (6) NULL, [cos] [char](6) NULL, [Filedate] [char](30) NULL, [ddsrpt] [char](30) NULL, [title] [varchar] (3) NULL, ) ON [PRIMARY]insert into testtableselect 'S09', 'C80', '028703', '028703', '5/11/2011', '5/11/2011', 'T16' union allselect 'S09', '267', '052582', '052582', '4/15/2011', '4/15/2011', 'T16' union allselect 'S09', '267', '052582', '052582', '4/15/2011', '4/15/2011', 'T2' union allselect 'S09', '267', '084813', '084813', '5/3/2011', '5/3/2011', 'T16' union allselect 'S09', '029', '116632', '116632', '5/5/2011', '5/5/2011', 'T2' union allselect 'S09', '268', '116632', '116632', '5/5/2011', '5/5/2011', 'T16'