Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL with join and after that get rid of empty values
Message
 
 
À
20/04/2006 17:15:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 7 SP1
Divers
Thread ID:
01115155
Message ID:
01115180
Vues:
8
Maybe I'm missing something but why are you using LEFT JOIN if you want to get read of all records produced by it at the end?

>I have an SQL construct where I have to do a left join and after that I want to get rid of the value that was joined if it's empty
>
>Here's what I did so far
>
>
>select code, nom, nom_anglais, nvl(nombrpoint, 0) as NombrePoint ;
>from produit ;
>left join PointItemGratuit on produit.Code = PointItemGratuit.CodeItem ;
>order by NombrePoint
>
>
>I tried doing the following
>
>
>select code, nom, nom_anglais, nvl(nombrpoint, 0) as NombrePoint ;
>from produit ;
>left join PointItemGratuit on produit.Code = PointItemGratuit.CodeItem ;
>where !empty( NombrePoint) ;
>order by NombrePoint
>
>
>But it returned an empty cursor
>
>How can I get only the non empty (>0) values ?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform