There should be no problem with comparing, but the query cannot work reliably if TimeRecorded and TimeStart are not guaranteed to be the same. Is there no way you could update InduDB.TimeStart and InduDB.TimeStop directly from TankGaugingDB.TimeRecorded, so that you do know they are the same?