MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » March 2010

SQL count?



fixed

Hi all,

If I have this table,

client transaction type
C1 A
C1 A
C1 B
C1 C
C1 A

how can I display the result :


Client count count
C1 3 2


ie, the number of records where transaction type=A and the number of records where transaction type<>A


Thanks,





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact