I have a table with two DATETIME columns.
One of them is never NULL, but one of them is sometimes NULL.
I need to write a query which will set all the NULL rows
Sounds like you're working in just one table so something like this:
update your_table set B = A where B is null