Any Reason why this keeps happening even though the query is valid?... My code is below :)
Select Cdf_Code_Tx, ProjectNo, Convert (Date, [Last Call Back],103) As LastCallBack, (CDF_New_des1_Tx+CDF_New_des2_Tx) As Description
From Products
Inner Join SpecDetails
On CDF_Code_Tx = ProductRef
Inner Join Projects2
On ProjectNo = PID
WHERE [Last Call Back] = (SELECT MAX(Convert (Date, [Last Call Back], 103))FROM Projects2)
Order By Convert (Date, [Last Call Back], 103)
When i run this , this error appears!
Msg 241, Level 16, State 1, Line 1 Conversion failed when converting date and/or time from character string.
Needing guidance & Thank you in advance.
[Last Call Back]is a varchar column that really should be a date column. What are the values there (=any non-date values)?[Last Call Back]column? Or you can useISDATEto check the column contains correct date values