Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to calculate the number of days with MS SQL Server?
Message
 
 
À
27/09/2006 17:37:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01157678
Message ID:
01157690
Vues:
16
This message has been marked as the solution to the initial question of the thread.
DATEDIFF(dd, Audits.dstart, getdate()) AS no_of_days
-- or
CAST(getdate()-Audits.dstart AS int) AS no_of_days
>I have a remote view with the following field expression. I am trying to calculate the number of days between the audit start and the current date. This is not returning the number of days however it's returning a datetime value. How can I perform this calculation and have the results listed as a field in the select cursor?
>
>getdate()-Audits.dstart AS no_of_days
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform