Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL not selecting just the operator
Message
 
 
To
29/07/2006 08:02:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01141464
Message ID:
01141708
Views:
19
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform