Hi, i have a main table, TABLE_A with . TABLE_A is in join on CODE with lookup table, TABLE_B what i want is to take only records where DATE is between DATE1 and DATE2. Additional problem: TABLE_A.DATE is a string like this yyyyMMdd eg.20001231 TABLE_B.DATE1,DATE2 is a date like this dd-MM-yyyy eg.31-12-2000