I need to write a query returning the count of a field and sum based on the value of another field in the same table.
The table contains the fields:
Salesperson
Amount
Status
I would like to show for each salesperson:
The count of items for status = 'C'
The sum amount for status = 'C'
The count of items for status = 'R'
The sum amount for status = 'R'
Please help if you can, thank you...
The table contains the fields:
Salesperson
Amount
Status
I would like to show for each salesperson:
The count of items for status = 'C'
The sum amount for status = 'C'
The count of items for status = 'R'
The sum amount for status = 'R'
Please help if you can, thank you...