Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Number Of Days Between Dates
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01426473
Message ID:
01426477
Vues:
34
>How do I calculate the number of days between two dates in SQL?
>
>
>SELECT APM_InvoiceDate - APM_DiscDate AS [VR-DSC-DAYS]
>	FROM iERP72_Test.dbo.APM
>
>
>This returns a datetime

DateDiff ?

See first example http://msdn.microsoft.com/en-us/library/ms189794.aspx
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform