I have a query that joins two tables.
The join is done on several columns, including a dateTime column.
The problem that I have at the moment is that the one dateTime column stores milliseconds whereas the other table is populated from a file which does not contain milliseconds
Because of this the join will never return results.
Is there any way via SQl to ignore the milliseconds?
If aTable.date contains millisenconds and bTable.date does not, to compare them:
converting datetime to varchar with arg2=120 produce this format: ODBC canonical yyyy-mm-dd hh:mi:ss