Hey All,
I have stored procedure which return results like this:
Sale person -----------qty-------Status
Jack----------------------100-------1
Jack----------------------200-------0
Mike----------------------50-------0
Mike----------------------55-------1
There are only 2 records per sale person.I want to display these records in gridview as:
Qty should be sum of qty irrespective to Status and pending should be sum of qty where Status is 1.
For ex for above scenario it should look like this:
Sale person -----------qty--------pending
Jack----------------------300----------100
Mike----------------------105------------55
any Suggestion?
Thanks!
I have stored procedure which return results like this:
Sale person -----------qty-------Status
Jack----------------------100-------1
Jack----------------------200-------0
Mike----------------------50-------0
Mike----------------------55-------1
There are only 2 records per sale person.I want to display these records in gridview as:
Qty should be sum of qty irrespective to Status and pending should be sum of qty where Status is 1.
For ex for above scenario it should look like this:
Sale person -----------qty--------pending
Jack----------------------300----------100
Mike----------------------105------------55
any Suggestion?
Thanks!
Comment