Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Functions in a select
Message
 
 
À
25/08/2008 15:49:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01341594
Message ID:
01341617
Vues:
18
If you're using VFP9, then transform your funciton into derived table, e.g.
select R.*, CAST(NVL(Expended,0) as I) as expended from rta_elements R LEFT JOIN 
(   select  sum(amount) as Expended, Sponsor_ID ;
from tip ;
inner join ledger on ledger.tip_id = tip.tip_id and source="RTA" ;
group by Sponsor_ID) MyAmount ON R.ElementNum = val(substr(MyAmount.sponsor_id,5,2))
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform