Subject | Re: [ib-support] SUM + row_count |
---|---|
Author | Ann W. Harrison |
Post date | 2002-11-23T21:21:52Z |
At 10:33 PM 11/22/2002 +1100, Helen Borrie wrote:
between count (<column name>) and count (*). The first
counts only those rows where the column value is not
null. The second counts all matching rows.
Regards,
Ann
www.ibphoenix.com
We have answers.
>Select sum("Col_1") as Total, count("col_1") AS answerThere is a subtle, but sometimes important, difference
> where "col_2" = '2';
between count (<column name>) and count (*). The first
counts only those rows where the column value is not
null. The second counts all matching rows.
Regards,
Ann
www.ibphoenix.com
We have answers.