Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL to not include certain records
Message
De
11/07/2003 11:15:48
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL to not include certain records
Divers
Thread ID:
00809217
Message ID:
00809217
Vues:
74
I'm trying to exclude any records with the EMPID = 7260 AND PLANID = 2571. If the EMPID = 7260 and the PLANID = 1234, then I do want the record. The SQL below is removing all records with a PLANID of 2571. I'm trying to do this quickly for a production issue. What should the syntax be?

Renoir
	SELECT Pmempdet.Planid, Pmempdet.Policy, Firstname, Midname, Lastname, SSN, ;
		Employed, Pmempdet.Leligible, Pmempdet.Particip, Email, pmemp.empid,  ;
		PmEmpDet.VestER, PmEmpDet.VestPs ; 
		FROM pmemp, Pmempdet ;
		WHERE (PMEMPDET.EMPID <> 7260 AND PMEMPDET.PLANID <> 2571) ;
		AND Pmempdet.Planid = tmpPlans.Planid ;
		AND Pmempdet.empid == pmemp.empid ;
		AND !Pmemp.NoDisplay ;
		INTO CURSOR Tmp_hold1
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform