Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL join with empty data in one table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00392660
Message ID:
00392721
Vues:
10
Christian,

Try this;
SELECT * ;
  FROM Companies Co JOIN Sales Sa ;
    ON Co.keyvalue = Sa.keybedra ;
 WHERE Sa.Price > 0 ;
UNION ALL ;
 SELECT * FROM Companies Comp ;
  WHERE Comp.KeyValue NOT IN (SELECT Keybedra FROM Sales) ;
 INTO CURSOR GoodResult
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform