Hi! I need helpI have two columns which I need to compare.Date of birth and NationalID both these columns are of varchar(15).Date of birth = '20 Jul 1953'NationalID = 5202255063080What I'm trying to achieve is:- The first six digits of the national ID is the date of birth, therefore should be the same as data in the dateofbirth column however this is not the case in some instances as you can see above.So I tried this query with noluck:SELECT Staff_Payroll.DateOfBirth, LEFT(Staff.NationalID, 6) AS NationalIDFROM Staff_Payroll INNER JOIN Staff ON Staff_Payroll.StaffNo = Staff.Staffno AND Staff_Payroll.Period = Staff.PeriodWhere Staff.Period = 200810AND Staff.NationalID != ''AND (ISDATE(LEFT(Staff.NationalID, 6)) = 1)AND (Staff.CallName NOT BETWEEN '0' AND '9')AND (Staff.CallName NOT IN ('Assessment', 'Fica', 'SACP Imaging', 'PPM', 'Teller', 'E-RM', 'NCCC')) AND (Staff.CallName NOT LIKE 'Train%') AND (Staff.CallName NOT LIKE 'Test%') AND (Staff.CallName NOT LIKE 'DCAR%') AND (Staff.CallName NOT LIKE 'Retail%') AND (Staff.Surname NOT LIKE 'Train%') AND (Staff.Surname NOT LIKE 'Returned%') AND (Staff.Surname NOT LIKE 'Silica%') AND (Staff.BranchID NOT LIKE 'FPB%') and Staff_Payroll.DateOfBirth != Left(Staff.NationalID,6)Please assist.