I have a query that counts records based on various criteria, but I would like to split the results into two grouped fields based on said criteria. Is there a way to do this inside the query - or is it necessary to have two queries?
select count(PT_TASK_ASSAY_DISP) as 'Count' from vbasedata v
where
v.PT_TASK_ASSAY_DISP like 'SS%' or
(v.PT_TASK_ASSAY_DISP like 'IP%' and
v.PT_TASK_ASSAY_DISP not like 'IP CUT' and
v.PT_TASK_ASSAY_DISP not like 'IP NEG');
I'm trying to group by IP and SS to get a total count.