|
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. -- [ Picked text/plain from multipart/alternative ] Thank you for your response but I know how to use the count(*) function. What I'm trying to do is use the count function in a case statement like I'm using the sum function below: Select fielda, fieldb, sum(case when "MONTH" = 1 then sales else 0 end) sum(case when "MONTH" = 2 then sales else 0 end) . . . >From Filez Group by fielda, fieldb > -----Original Message----- > From: bill.reger@convergys.com [SMTP:bill.reger@convergys.com] > Sent: Tuesday, September 04, 2001 11:29 AM > To: midrange-l@midrange.com > Subject: Re: Syntax of case statement using a count function > > > SELECT COUNT(*) FROM library/file WHERE FLDNAM = 500 --
As an Amazon Associate we earn from qualifying purchases.
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.