Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Functions in a select
Message
De
26/08/2008 07:06:48
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
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:
01341722
Vues:
15
>>You could prevent that using a cast. However calling such a function wouldn't be feasible. Instead youı might do somethging like:
>>
>>
select rta_elements.*, cast(nvl(tmp.amount,0) as y) as expended ;
>>  from rta_elements ;
>>  left join ;
>>  (select  cast(val(substr(sponsor_id,5,2)) as int) as sponsor_id, sum(amount) as amount ;
>>     from tip ;
>>         inner join ledger on ledger.tip_id = tip.tip_id and source="RTA" ;
>>         group by 1) tmp ;
>>  on tmp.sponsor_id = rta_elements.elementnum ;
>>  order by elementnum
>>
Cetin
>
>Re: Functions in a select Thread #1341594 Message #1341631
>
>:)

Very nice. Luckily you know me for long enough to believe that I "copied" the code eyes closed:)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform