Good Evening
I have a table which contains a PreparedBy column which contains names, a column Accepted which is either Y, N or Null.
I need to select records, grouped by PreparedBy and and for each group show either the number Won or Lost. The Won is determined if the Accepted column holds a 'Y' and the Lost if it contains an 'N'. If it contains a NULL then neither sum is incremented.
I'm sure this should be quite easy but I can't get my head around it!
Any assistance would be great!
Thanks in advance
Steve
I have a table which contains a PreparedBy column which contains names, a column Accepted which is either Y, N or Null.
I need to select records, grouped by PreparedBy and and for each group show either the number Won or Lost. The Won is determined if the Accepted column holds a 'Y' and the Lost if it contains an 'N'. If it contains a NULL then neither sum is incremented.
I'm sure this should be quite easy but I can't get my head around it!
Any assistance would be great!
Thanks in advance
Steve