opendentalsupport.com is an independent community resource. We are NOT affiliated with, endorsed by, or sponsored by Open Dental Software, Inc. Open Dental® is a registered trademark of Open Dental Software, Inc.

Open Dental Payment Plan Balance Query

SQL Queries3 min read4/9/2026

If you need to see exactly how much money is still owed on active patient payment plans, this report provides a clear list of balances for your entire practice. This open dental payment plan balance query helps office managers identify which accounts need follow-up without manually checking every chart.

The Query

Copy and paste the following code into your User Query window. This query calculates the total amount agreed upon for the payment plan and subtracts the payments already made to show the remaining balance.

/* Set the status to only include active patients */
SET @PatStatus = 0;

SELECT 
    p.LName, 
    p.FName, 
    pp.TotalAmount AS 'Total Plan Amount', 
    SUM(ps.SplitAmt) AS 'Total Paid', 
    (pp.TotalAmount - SUM(ps.SplitAmt)) AS 'Remaining Balance'
FROM payplan pp
INNER JOIN patient p ON pp.PatNum = p.PatNum
LEFT JOIN paysplit ps ON pp.PayPlanNum = ps.PayPlanNum
WHERE p.PatStatus = @PatStatus
GROUP BY pp.PayPlanNum
HAVING (pp.TotalAmount - SUM(ps.SplitAmt)) > 0
ORDER BY p.LName, p.FName;

How to Run This Query

  1. In Open Dental, go to Reports in the Main Menu.
  2. Click User Query.
  3. Paste the query provided above into the large text box.
  4. Click Submit Query.
  5. The results will display in the grid below the text box.

Understanding the Results

How to Customize

You can easily filter this list to focus on specific needs.

Variations

If you only want to see patients with a very high remaining balance, you can add a filter to the HAVING clause to exclude smaller balances.

Change the HAVING line to:
HAVING (pp.TotalAmount - SUM(ps.SplitAmt)) > 500

This will only show patients who still owe more than $500 on their payment plan.

Skip the Query — Use DentalCanvas Instead

Don't want to write SQL? DentalCanvas connects to your Open Dental database and shows you this data automatically in a visual dashboard — no queries required.


This article is provided by opendentalsupport.com, an independent community resource. We are not affiliated with Open Dental Software, Inc.

Stop Writing SQL.

DentalCanvas connects directly to your Open Dental database and shows you production, collections, scheduling, and more — in a visual dashboard you can understand at a glance. No queries. No exports. Just answers.

Try DentalCanvas

Was this article helpful?

Related Articles

opendentalsupport.com is an independent community resource. We are NOT affiliated with, endorsed by, or sponsored by Open Dental Software, Inc. Open Dental® is a registered trademark of Open Dental Software, Inc.