Hi admin and others, I have the data: ID EventDate Value 1 17/07/1999 a 1 08/8/1999 b 1 20/11/1999 c 1 04/06/2003 d 1 11/05/2005 e 1 08/09/2005 .. 1 02/11/2005 -- 1 17/2/2006 -- 1 28/09/2006-- I want to delete for the same id during the three months before or after Eventdate. So if the 17/07/1999 then next date is 20/11/1999, delete 08/10/1999 because intck ("month", 17/07/1999, 08/08/1999)< 3 months. But if 08/08/1999 deleted, then I will check 17/07/1999 and 20/11/199, the distance is more than 3 months then I keep it. The I tried to combine all data by itself by id, then if intck >3 then delete then I have two (17/7/1999 and 20/11/1999) ( 08/08/1999 and 20/11/1999) and I have no idea to delete 08/08. If first.date ... cannot work for this case and I cannot keep the last date if use intck. Please help and advise. Thank you so much, Ha
... View more