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:
00393239
Vues:
16
>Try:
>
SELECT * ;
>   FROM Companies Co ;
>   LEFT OUTER JOIN Sales Sa ;
>      ON Co.KeyValue = Sa.keyBedra AND ;
>         Sa.Price > 0 ;
>   INTO CURSOR GoodResult
I didn't know you could have something like Sa.Price > 0 in the JOIN expression. I thought those expressions had to be field relop field. But I just tried it on some of my data and it worked. Does standard ANSI SQL allow that, or is it a vfp thing? Interesting. Thanks.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform