sunitabeck, I'm not sure if I've done this correctly but here is the DDL:CREATE TABLE [dbo].[mOnCallAdd] ( [ID] [int] IDENTITY (1, 1) NOT NULL , [RecID] [decimal](18, 0) NOT NULL , [Timestamp] [int] NULL , [SchedName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Rank] [int] NULL , [StartOnCallDate] [int] NULL , [StartOnCallTime] [int] NULL , [Override] [int] NULL , [FirstListing] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Duration] [decimal](18, 0) NULL , [TimeDifference] [decimal](18, 0) NULL , [AddDate] [int] NULL , [AddTime] [int] NULL , [Initials] [nvarchar] (3) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Opname] [nvarchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Comment] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field0] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field1] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field2] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field3] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field4] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field5] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field6] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field7] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field8] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field9] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field10] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [Field11] [nvarchar] (40) COLLATE SQL_Latin1_General_CP1_CI_AS NULL , [MainSchedName] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL ) ON [PRIMARY]GO
Here is a sample line of data:1 70550 55426893 Schedname 0 38490 1020 0 Dr Doctor 840 0 38490 1293 TG 8199
the results I'm currently getting are like this:ZACH CCM ONCALL PATRICE ENM 2011-01-19 10:00:00.000 2011-03-21 06:00:00.000 2011-03-22 18:00:00.000 2011-01-19 10:00:00.000
and what I'd like to get is any activity either in the moncalladd or moncalldelete table that matches either a schedname or a "since date" and present is activity and when that activity took place (as determined by either when something is "added" or something is "deleted")