Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ANSI SQL Date Calculations against Oracle Rdb data
Message
De
21/07/1999 18:14:11
 
 
À
21/07/1999 15:48:21
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00244314
Message ID:
00244438
Vues:
23
>Is it possible to subtract 2 dates in ANSI SQL92 and get a number of days, months, or years? What is the syntax?

Cindy,

I've not been able to locate any kind of documentation about pure ANSI SQL. If you find something, please forward it to me.

Try using DATEDIFF(part, startdate, enddate). I'm not sure if it's specific to SQL Server or not.

WHERE DATEDIFF(year, dDOB, dDischargeDate) > 18

I'm not making any promises...

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform