Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intersection of schedules
Message
 
To
07/09/1998 17:30:48
Stephen E Johnson
Johnson & Associates Business Software
Corvallis, Oregon, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00133845
Message ID:
00133917
Views:
10
You basically have three conditions to check:

a) If start and end our both outside
b) If start is inside
c) If end is inside

Select count(*) as howmany from t1, t2 ;
where (t1.start .LT. t2.start and t1.end .GT. t2.end) ;
or (t1.start >= t2.start and t1.start <= t2.end) ;
or (t1.end >= t2.start and t1.end <= t2.end)

Costas
Previous
Reply
Map
View

Click here to load this message in the networking platform