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.

Scheduled Production Query for Tomorrow

SQL Queries3 min read3/29/2026

If you need to know exactly how much production is on the books for tomorrow to prepare your team for the day ahead, this report provides the answer instantly. This open dental scheduled production query calculates the total fees for all procedures attached to appointments scheduled for the next business day.

The Query

Copy and paste the following code into your User Query window. This query looks specifically for appointments with a status of "Scheduled" (AptStatus = 1) for the date defined in the variable.

SET @TargetDate = CURDATE() + INTERVAL 1 DAY;

SELECT 
    a.AptDateTime AS 'Appt Time',
    p.LName AS 'Last Name',
    p.FName AS 'First Name',
    SUM(pl.ProcFee) AS 'Total Production'
FROM appointment a
INNER JOIN patient p ON a.PatNum = p.PatNum
INNER JOIN procedurelog pl ON a.AptNum = pl.AptNum
WHERE a.AptStatus = 1
AND DATE(a.AptDateTime) = @TargetDate
AND pl.ProcStatus != 6 -- Exclude deleted procedures
GROUP BY a.AptNum
ORDER BY a.AptDateTime;

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, showing the appointment time, patient name, and the total production value for that specific appointment.

Understanding the Results

How to Customize

You can easily adjust this query to look at different dates or filter by specific criteria.

Variations

If you want to see a breakdown by provider for the entire day, you can modify the SELECT statement to group by the provider's name instead of the appointment.

Another useful variation is to filter for only hygiene appointments. You can add this line to the WHERE clause:
AND a.IsHygiene = 1

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.