× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: Rather Urgent SQL QUESTION
  • From: "Bill" <brobins3d@xxxxxxxxx>
  • Date: Thu, 19 Oct 2000 10:16:13 -0700

Bart,
select chl1uc,itnouc,(select sum(ofqsuc0101) from cognosanc.flinvbcum where chl1uc=f.chl1uc and itnouc=f.itnouc and year='2000') as 2000
from cognosanc.flinvbcsum f
where chl1uc='K00069'
group by chl1uc,itnouc;
Try this:
Select f.chl1uc,f.itnouc,sum(d.ofqsuc0101) as sumfld
From cognosanc.flinvbcsum f join cognosanc.flinvbcum d
  on f.chl1uc=d.chl1uc and f.itnouc=d.itnouc
where d.year='2000' and f.chl1uc='K00069'
group by f.chl1uc, f.itnouc ;
 
Bill

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.