Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BETWEEN() not returning correct results
Message
De
03/06/2008 06:14:20
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01321168
Message ID:
01321239
Vues:
14
>Hi Sergey. It is DATETIME() type. Does it need to be handled differently in the BETWEEN() clause?

Think about it! Is the 3rd of June 2008 12:09 PM between 3rd of June 2008 12:00 AM and 3rd of June 2008 12:00 AM? No, it's after midnight, even after noon.

Your not querying a datetime being within a date, the date values are extended with 12 AM, so you would only find if a datetime is exactly midnight of that queried day...

Get it now, why you would add 1 to the end date? It's just so you get a real timespan you will query in.

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform