Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calculate the day and time difference
Message
De
07/01/2000 06:45:56
 
 
À
07/01/2000 02:30:07
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00314371
Message ID:
00314398
Vues:
18
Alvin

>I have a column in SQL Server table and would like to calulate
the differences in day/secs in 2 of the rows/records.
What command shall I use to get the difference from 2 DateTime
fields. Thanks.

Try the datediff function (from the query analyser type in datediff and press SHIFT-F1) for the help. This allows you to compare differences between parts of dates.

Cheers
Steve Lea
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform