Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL join with empty data in one table
Message
 
 
À
14/07/2000 16:28:21
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:
00392674
Vues:
9
>I think that you need to try:
>
>SELECT * FROM sales Sa RIGHT JOIN...
>
>or INNER JOIN, depending on what you are trying to accomplish.

Sorry, I forgot to mention what I want to get as result: The companies without corresponding records in the Sales table should get one record which the sales data is just empty. Because of the Where expression Sales.Price>0 this cannot be, because empty data is always null, so the sql cannot include this record in the cursor.
I fear I cannot do this in one SQL line, and I have to do some tricks, unless someone comes up with a good idea!

Thanks for help.
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform