Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT - SQL command question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00618787
Message ID:
00618800
Views:
13
Sergey,

You are right, if Agency is not in the Observe table, then there is no reason to check Activity. Ooooops! I removed the observe.activity field comparison, but I still want to compare only to Observe records that fall within the specified date range in the Observe table.

So the new command would look like this. I doubt this command will do the date range comparison correctly because I don't SELECT the date fields FROM observe or would it? If not, what should I change?
SELECT DISTINCT agency.agency FROM agency WHERE agency.agency ;
  NOT IN (SELECT observe.agency FROM observe) AND ;
  observe.date>=CTOD(sdate) AND observe.date<=CTOD(edate) INTO CURSOR agcy
Thanks for the help.
Steve Kramer
Kramer & Kramer Design
"Home of Go Cartoons"
Web Site: www.stephenkramer.com
Would you believe Far Side Lite?
More than 270 original cartoons.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform