I am relatively new programmer. I am trying to create a left join with count of unique rows in a specific column. with normal count it is working fine, nut with unique it is failing.
count(case when x.priorities = 112 then 1 end) as Urgent.
it is pulling all the records. I need to convert it into unique records.
i am looking for a direction or syntax which i can try.