Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WHERE Not IN
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01512443
Message ID:
01512445
Vues:
73
This is what I have and it isn't quite working; FoxPro doesn't like the subquery.
	SELECT ;
		 " " AS CheckOff, a.grpid, a.grpnum, b.lastname, b.firstname, b.dob, a.Hist, a.PlanKey, a.Status, a. Renewal, ;
		a.ptd ;
	FROM grpextcv  a ;
	JOIN grpextin b ON a.grpid+a.grpnum=b.grpid+b.grpnum ;
	WHERE a.Hist="99" AND a.GrpID="ACS" AND ;
		(YEAR(a.ptd) > 1997 AND YEAR(a.ptd) < 2009) AND (INLIST(a.Status, "C, U, T") OR ;
		INLIST(a.Renewal, "X, C, L, D")) AND a.GrpID =;
		(SELECT grpID FROM grpextin d WHERE INLIST(Status, "A", "B") AND Hist="99" AND ;
		d.GrpNum <> a.GrpNum) ;
		ORDER BY a.grpid, a.grpnum ;
	INTO CURSOR tmpBefore2009_ACS_Only
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform