Trying to decide if I need an SQL expert to help, or see if I can work it out myself...
I have a table which I'm pivoting 4 fields (out of hundreds) that are of interest. Pivoting on 1 to get the sum of another based on the third (works perfectly), but also want to have a count of the distinct records on the 4th field.
I know how to do a count of the distinct records, but can't think right now how to get that on the same output as the pivot.
I have a table which I'm pivoting 4 fields (out of hundreds) that are of interest. Pivoting on 1 to get the sum of another based on the third (works perfectly), but also want to have a count of the distinct records on the 4th field.
I know how to do a count of the distinct records, but can't think right now how to get that on the same output as the pivot.
Comment