Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why my SQL gives me wrong results
Message
 
 
To
27/07/2006 11:56:32
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01140687
Message ID:
01140745
Views:
12
Actualy I was mistaken. It covers all Terry's examples but I doesn't cover cases when NET.Start_date = NET.End_date = ldStartCurr or NET.Start_date = NET.End_date = ldEndCurr

>What do you mean Sergey? ldStartPrev,ldEndPrev? You can add it as another condition.
>Cetin
>
>>Cetin,
>>
>>Your condition do not satisfy 2nd, 3rd and 4th examples below.
>>
>>>Didn't check throroughly, just some code to get 'overlapping' in an easier way:
>>>
where NET.Start_date < m.ldEndCurr and  NET.End_date > m.ldStartCurr
>>>instead of multiple 'or's.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform