Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
An Odd SQL Select Statement
Message
De
21/08/1997 11:37:30
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00045875
Message ID:
00046145
Vues:
34
One more try...
SELECT ;
   consigne.o_label AS o_labela, ;
   contemp.o_label AS o_labelb, ;
   consigne.o_address1,;
   consigne.o_address2, ;
   consigne.o_city, ;
   consigne.o_state, ;
   consigne.o_zip ;
FROM ;
   consigne, contemp ;
WHERE ;
   consigne.o_label <> contemp.o_label AND ;
   consigne.o_address1 = contemp.o_address1 AND ;
   consigne.o_address2 = contemp.o_address2 AND ;
   consigne.o_city = contemp.o_city AND;
   consigne.o_state = contemp.o_state AND ;
   consigne.o_zip = contemp.o_zip ;
GROUP BY consigne.o_address1+consigne.o_address2+;
         consigne.o_city+consigne.o_state+consigne.o_zip ;
INTO TABLE ;
   (lcDatapath+'condupe.dbf')
Try that way
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform