How do you compare dates with diiferent format .I have one table which has date field in yyyymm format and is integer field and I need to compare year part and month part with date field from another table that is char(8) field i need to compare the year part and month part.