Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to exclude weekends in computation of date using SQL
Message
De
01/10/2003 20:02:01
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How to exclude weekends in computation of date using SQL
Divers
Thread ID:
00834041
Message ID:
00834041
Vues:
74
in my table i have fields from and to date that i want to compute, so using SQL i use,

SELECT empno,(todate-frdate) as "mydate" from mytable

say todate=10/06/2003 and frdate=10/01/2003..

how do i compute the date so that i would give me a value excluding saturday and sunday?

IIF(dow(todate-frdate)!=6 or dow(todate-frdate)!=7) in SQL does not work.

any help pls?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform