Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL to not include certain records
Message
De
11/07/2003 11:33:00
 
 
À
11/07/2003 11:15:48
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00809217
Message ID:
00809226
Vues:
39
This message has been marked as the solution to the initial question of the thread.
How bout:

>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 (NOT (PMEMPDET.EMPID = 7260 AND PMEMPDET.PLANID = 2571)) ;
>		AND Pmempdet.Planid = tmpPlans.Planid ;
>		AND Pmempdet.empid == pmemp.empid ;
>		AND !Pmemp.NoDisplay ;
>		INTO CURSOR Tmp_hold1
>
>
Steve Gibson
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform