Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL not selecting just the operator
Message
De
30/07/2006 22:00:20
 
 
À
29/07/2006 08:02:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01141464
Message ID:
01141708
Vues:
27
>Well, at least I see that the Between syntax in the Where clause is incorrect:
>And (ET.date BETWEEN ldStartCurr and ldEndCurr ;
>  OR ET.date BETWEEN ldStartPrev and ldEndPrev)
>Should be something like
> And (between(ET.date,ldStartCurr,ldEndCurr) ;
>  OR between(ET.date,ldStartPrev,ldEndPrev))
>What happens if ET.date is empty or NULL?

Actually, they are both correct, but the first is more SQL-server compatible.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform