Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anniversary/birthday reminders
Message
De
05/04/2005 10:44:48
 
 
À
05/04/2005 10:40:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01001497
Message ID:
01001499
Vues:
18
Would something like this be the best way, or is there another better way?
WHERE BETWEEN(RIGHT(DTOS(dob),4), RIGHT(DTOS(DATE() - 1),4), RIGHT(DTOS(DATE() + 1),4))
>Hi,
>
>I've gone brain dead :(
>
>I have some SQL code:
>
>
>SELECT dob as dactivity, client_no, PADR("Birthday", 20) as cType;
>	FROM c_clientlist;
>	WHERE DAY(dob) = DAY(DATE()) AND MONTH(dob) = MONTH(DATE())
>
>
>which will give me anybody who was born on the current day.
>
>Say I wanted to allow the user to enter a starting date and an ending date and then I will pull out all people who have birthdays falling within that range.
>
>How do I convert this to work on a range of dates?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform