I have a table with 2 columns: AgrNo and RowFlag. RowFlag can have 2 values ie 'Y' or 'N'. I would like to count the number the total 'y' and 'N' for a corresponding AgrNo.
Resultant set will have 3 columns: Agrno, CountOf(Y) and CountOf(N).
countOf(Y) : will have the count of RowFlag with value as 'y' for an AgrNo
countOf(N) : will have the count of RowFlag with value as 'N' for an AgrNo
any suggestions how to go about it