0

i have a variable named "status" in which there are values like : Expired No Interest Already Engaged Never Reached Non-Supported Market Nurture

i want to get count of all these.

do i have to write manually like :

select 
sum (case when a.[Status Reason] ='Expired' and a.status='Disqualififed' then 1 else 0 end ) as expired,
sum (case when a.[Status Reason] ='No interest' and a.status='Disqualififed' then 1 else 0 end ) as nointerst from lead

is there any shortcut or some kind of automation possible

Adi
  • 329
  • 1
  • 8

0 Answers0