Skip to end of banner
Go to start of banner

Daily Dispute Amount

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Description:Provides total amount disputed, by day, Claim Type, and Claim Category.
Sources:Disputes

It is important that you always include tenantID in your WHERE clause.  Not doing so will result in poor performance.  

WHERE tenantid = 'YOURTENANTIDHERE'

SQL

SELECT
to_date(createdate) AS "Create Date",
type AS "Claim Type",
category AS "Claim Category",
SUM(d.disputeamount) as "Dispute Amount"
FROM
disputes AS d
WHERE
tenant= 'YOURTENANTIDHERE'
GROUP BY
"Create Date", type, category
ORDER BY
"Create Date" DESC, type DESC, category DESC
  • No labels