Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL to not include certain records
Message
 
 
À
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:
00809225
Vues:
29
This message has been marked as a message which has helped to the initial question of the thread.
Renoir,

Change it to
  WHERE NOT (PMEMPDET.EMPID = 7260 AND PMEMPDET.PLANID = 2571) ;
>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
>
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform