SELECT
date(inc."createdon") 'Day (Created On)',
SUM(case when (inc."prioritycode"='Low') then 1 else 0 end) 'Low',
SUM(case when (inc."prioritycode"='Normal') then 1 else 0 end) 'Normal',
SUM(case when (inc."prioritycode"='High') then 1 else 0 end) 'High'
FROM
"incident" inc
INNER JOIN
"owner" AS owner_inc ON inc."ownerid" = owner_inc."ownerid"
WHERE
inc."statecode" = 'Active' AND owner_inc."name" = 'Devart Corp'
GROUP BY
date(inc."createdon")
Skyvia Query allows you to run SQL queries against databases and cloud applications from web browser. Access and manage your data from anywhere, build reports, arrange your data in the most informative way and simplify your decision-making process easily!
