H
H
heavybrain2019-11-13 10:40:01
SQL Server
heavybrain, 2019-11-13 10:40:01

Comparison of two dates and selection of the second in a day or more?

It is necessary to compare 2 dates, and so that the second date starts exactly in a day or more than the first one, how to write it in where? just > this is not correct because then the next day is taken into account ..

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2019-11-13
@heavybrain

DateField2 >= DATEADD( hh, 24, DateField1 )

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question