Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Multiexcerpt include macro
macro_uuid40b8ba4c-84da-465a-bdb3-4a7373cfd13b
nameWhereClauseWarning
templateDataeJyLjgUAARUAuQ==
pageSQL Library
addpanelfalse

SQL

<font face="Courier New" size="2">
<font color = "blue">SELECT</font>&nbsp;<font color = "maroon">client</font><font color = "silver">.</font><font color = "maroon">commonname</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Client&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">c</font><font color = "silver">.</font><font color = "maroon">claimtype</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Claim&nbsp;Type&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">c</font><font color = "silver">.</font><font color = "maroon">reasontype</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Claim&nbsp;Category&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">c</font><font color = "silver">.</font><font color = "maroon">reason</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Claim&nbsp;Reason&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">claimid</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Claim&nbsp;ID&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">disputeid</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Dispute&nbsp;ID&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">c</font><font color = "silver">.</font><font color = "maroon">customercontactdate</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Contact&nbsp;Date&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">acquirernetwork</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Network&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">status</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Dispute&nbsp;Status&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">disputeamount</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Dispute&nbsp;Amount&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "#FF0080"><b>To_date</b></font><font color = "maroon">(</font><font color = "maroon">cb</font><font color = "silver">.</font><font color = "maroon">performedondatetime</font><font color = "maroon">)</font>&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Chargeback&nbsp;Date&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">cb</font><font color = "silver">.</font><font color = "maroon">amount</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Chargeback&nbsp;Amount&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "#FF0080"><b>To_date</b></font><font color = "maroon">(</font><font color = "maroon">rp</font><font color = "silver">.</font><font color = "maroon">performedondatetime</font><font color = "maroon">)</font>&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Representment&nbsp;Date&quot;</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "maroon">rp</font><font color = "silver">.</font><font color = "maroon">amount</font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">&quot;Representment&nbsp;Amount&quot;</font>
<br/><font color = "blue">FROM</font>&nbsp;&nbsp;&nbsp;<font color = "maroon">dispute</font>&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">d</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">JOIN</font>&nbsp;<font color = "maroon">claim</font>&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">c</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">ON</font>&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">tenantid</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "maroon">c</font><font color = "silver">.</font><font color = "maroon">tenantid</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AND</font>&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">claimid</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "maroon">c</font><font color = "silver">.</font><font color = "maroon">claimid</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">JOIN</font>&nbsp;<font color = "maroon">client</font>&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">client</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">ON</font>&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">tenantid</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "maroon">client</font><font color = "silver">.</font><font color = "maroon">tenantid</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AND</font>&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">clientid</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "maroon">client</font><font color = "silver">.</font><font color = "maroon">clientid</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">JOIN</font>&nbsp;<font color = "maroon">recoveryaction</font>&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">cb</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">ON</font>&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">tenantid</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "maroon">cb</font><font color = "silver">.</font><font color = "maroon">tenantid</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AND</font>&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">disputeid</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "maroon">cb</font><font color = "silver">.</font><font color = "maroon">disputeid</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AND</font>&nbsp;<font color = "maroon">cb</font><font color = "silver">.</font><font color = "maroon">actionname</font>&nbsp;<font color = "blue">IN</font>&nbsp;<font color = "maroon">(</font>&nbsp;<font color = "red">'Dispute&nbsp;Submitted'</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "red">'Rapid&nbsp;Dispute&nbsp;Resolution'</font>&nbsp;<font color = "maroon">)</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AND</font>&nbsp;<font color = "maroon">cb</font><font color = "silver">.</font><font color = "maroon">cycle</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "red">'1'</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">JOIN</font>&nbsp;<font color = "maroon">recoveryaction</font>&nbsp;<font color = "blue">AS</font>&nbsp;<font color = "maroon">rp</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">ON</font>&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">tenantid</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "maroon">rp</font><font color = "silver">.</font><font color = "maroon">tenantid</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AND</font>&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">disputeid</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "maroon">rp</font><font color = "silver">.</font><font color = "maroon">disputeid</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AND</font>&nbsp;<font color = "maroon">rp</font><font color = "silver">.</font><font color = "maroon">actionname</font>&nbsp;<font color = "blue">IN</font>&nbsp;<font color = "maroon">(</font>&nbsp;<font color = "red">'Inbound&nbsp;Pre-Compliance&nbsp;Received'</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "red">'Dispute&nbsp;Declined'</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "red">'Pre-Arbitration&nbsp;Received'</font><font color = "silver">,</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "red">'Dispute&nbsp;Accepted&nbsp;-&nbsp;Partial'</font>&nbsp;<font color = "maroon">)</font>
<br/><font color = "blue">WHERE</font>&nbsp;&nbsp;<font color = "maroon">d</font><font color = "silver">.</font><font color = "maroon">tenantid</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "red">'YOURTENANTIDHERE'</font>
<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color = "blue">AND</font>&nbsp;<font color = "maroon">rp</font><font color = "silver">.</font><font color = "maroon">performedondatetime</font>&nbsp;<font color = "silver">=</font>&nbsp;<font color = "maroon">:daterange</font>&nbsp;
</font>
HTML Comment
Code Block
languagesql
SELECT client.commonname AS "Client",
c.claimtype AS "Claim Type",
c.reasontype AS "Claim Category",
c.reason AS "Claim Reason",
d.claimid AS "Claim ID",
d.disputeid AS "Dispute ID",
c.customercontactdate AS "Contact Date",
d.acquirernetwork AS "Network",
d.status AS "Dispute Status",
d.disputeamount AS "Dispute Amount",
To_date(cb.performedondatetime) AS "Chargeback Date",
cb.amount AS "Chargeback Amount",
To_date(rp.performedondatetime) AS "Representment Date",
rp.amount AS "Representment Amount"
FROM dispute AS d
JOIN claim AS c ON d.tenantid = c.tenantid AND d.claimid = c.claimid
JOIN client AS client ON d.tenantid = client.tenantid AND d.clientid = client.clientid
JOIN recoveryaction AS cb ON d.tenantid = cb.tenantid AND d.disputeid = cb.disputeid AND cb.actionname IN ( 'Dispute Submitted','Rapid Dispute Resolution' ) AND cb.cycle = '1'
JOIN recoveryaction AS rp ON d.tenantid = rp.tenantid AND d.disputeid = rp.disputeid AND rp.actionname IN ( 'Inbound Pre-Compliance Received','Dispute Declined','Pre-Arbitration Received','Dispute Accepted - Partial' )
WHERE d.tenantid = 'YOURTENANTIDHERE' AND rp.performedondatetime = :daterange


Field Glossary

FieldDefinition
Client
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageCommon Name
addpanelfalse
Claim Type
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageClaim Type
addpanelfalse
Claim Category
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageClaim Category
addpanelfalse
Claim Reason
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageClaim Reason
addpanelfalse
Network
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageNetwork
addpanelfalse
Claim ID
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageClaim ID
addpanelfalse
Dispute ID
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageDispute ID
addpanelfalse
Contact Date
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageCustomer Contact Date
addpanelfalse
Dispute Status
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageDispute Status
addpanelfalse
Dispute Amount
Multiexcerpt include macro
macro_uuid105b9e81-14d5-44ec-9511-2e0bd16a167e
nameglossary_description
templateDataeJyLjgUAARUAuQ==
pageDispute Amount
addpanelfalse
Chargeback DateDate the chargeback was performed.
Chargeback AmountAmount of the chargeback.
Representment DateDate the representment was received.
Representment AmountAmount of the representment.

...