dateadd and datediff function in SQL server 2019 in (2020)

Publié le: 06 juin 2020
sur la chaîne: Learn Tech with Ashish
77
1

This video is for dateadd and datediff function in SQL server

dateadd function can be used to add any interval like Day, Month, Year, etc.
Example:- i want to add 2 Months in todays date
select DateAdd(month,2,Getdate())

DateDiff function is used to get the difference between two dates in specific boundaries like Day, Month, Year, etc.

Example:- i want to get diffrenct between 06-06-2020 and 07-06-2020 in Months in
select DateAdd(month,'2020-06-06','2020-07-06')


great tutorial to learn SQL Server and T-SQL with Examples and new videos in simple language


Sur cette page du site, vous pouvez voir la vidéo en ligne dateadd and datediff function in SQL server 2019 in (2020) durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Learn Tech with Ashish 06 juin 2020, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 77 fois et il a aimé 1 téléspectateurs. Bon visionnage!