Re: [SQL] sql subqueries problem

2002-08-20 Thread Mathieu Arnold
>> I've tried, but, as the subselect is an aggregate, I can't get it (maybe >> I don't know enough about it to do it :) > > Right, that'd make it harder. :) > > Hmm, would something like: > > FROM > (select *, > (select sum(ff.montant_ttc/df.taux) from facture ff join > devise as df using

Re: [SQL] sql subqueries problem

2002-08-20 Thread Stephan Szabo
On Tue, 20 Aug 2002, Mathieu Arnold wrote: > --On lundi 19 août 2002 09:45 -0700 Stephan Szabo > <[EMAIL PROTECTED]> wrote: > > > > > On Mon, 19 Aug 2002, Mathieu Arnold wrote: > > > >> Hi > >> > >> I have my accounting in a database, and I have a problem with subqueries, > >> here is what I have

Re: [SQL] sql subqueries problem

2002-08-19 Thread Mathieu Arnold
--On lundi 19 août 2002 09:45 -0700 Stephan Szabo <[EMAIL PROTECTED]> wrote: > > On Mon, 19 Aug 2002, Mathieu Arnold wrote: > >> Hi >> >> I have my accounting in a database, and I have a problem with subqueries, >> here is what I have : >> >> >> >> SELECT f.numero, >> f.id_clie

Re: [SQL] sql subqueries problem

2002-08-19 Thread Stephan Szabo
On Mon, 19 Aug 2002, Mathieu Arnold wrote: > Hi > > I have my accounting in a database, and I have a problem with subqueries, > here is what I have : > > > > SELECT f.numero, > f.id_client, > f.date_creation, > (f.date_creation + (f.echeance_paiement||' days')::inter

[SQL] sql subqueries problem

2002-08-19 Thread Mathieu Arnold
Hi I have my accounting in a database, and I have a problem with subqueries, here is what I have : SELECT f.numero, f.id_client, f.date_creation, (f.date_creation + (f.echeance_paiement||' days')::interval)::date AS echeance, f.montant_ttc, ROUND(