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
Title:
SELECT - SQL command question
Miscellaneous
Thread ID:
00618787
Message ID:
00618787
Views:
48
This is my SELECT - SQL command.
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) AND ;
	(ALLT(observe.activity) <> "Visit- Station" AND ;
	ALLT(observe.activity) <> "Visit- Hospital") INTO CURSOR agcy
Is this command ignoring the fields observe.date and observe.activity the way I have it written? If this command is wrong, how can I change it so it shows me agencies in the Agency table that are not in Observe table, but falls within those dates and not those particular activities in the Observe table?

Thanks for the information. Much appreciated!
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.
Next
Reply
Map
View

Click here to load this message in the networking platform