DateAdd is Used get the either Past or Future Date.
Eg: Select Dateadd(Day, -5, getdate()) as pastdate
DateDiff is used to get the difference in numbers b/w Start and End date.
DateDiff can also be used to calculate like
Day
Year
Hour
Minute
Second
Week
DAYOFYEAR
Eg: Select DateDiff(Day, '2024-08-01', getdate()) as Day
Nesta página do site você pode assistir ao vídeo on-line DateDiff and DateAdd function in SQL server duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário AnalytIQHub 09 Agosto 2024, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 185 vezes e gostou 3 espectadores. Boa visualização!