Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The dreaded OUTER,INNER,LEFT,RIGHT join question
Message
De
25/02/2000 10:06:45
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00337397
Message ID:
00337465
Vues:
17
Bret,

>That worked, the interesting thing is that .NULL. is returned in child table fields. So I will have to work with that. The other thing I saw was that it was not very fast in relation to a regular not outer join SQL.

You *can* use ISNULL() in the SQL statement if you must force certain fields to a value other than NULL for missing child records. For example with a 6-char field1 in your y table that you want to show "NONE " if null:
SELECT x.field1, ;
       IIF(ISNULL(y.field1), "NONE  ", y.field1) AS detail ; ....
or select to a table and loop thru to change the values, or handle it in the report writer, or ..... (lots of ways for a Fox to skin a cat)
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform