Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT - SQL command question
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
SELECT - SQL command question
Divers
Thread ID:
00618787
Message ID:
00618787
Vues:
49
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform