select t1 where t1. == && exists join t2 where t2.CG == t1.CG && t2.DateCreate <19.10.2010 && t2.DateCreate >20.10.2010