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.

Sealant Opportunities Ages 6-14

SQL Queries3 min read4/2/2026

If you are looking to increase production by identifying patients who are due for preventative care, this report is for you. This open dental sealant opportunities query helps you find active patients between the ages of 6 and 14 who have not yet had sealants completed, allowing your team to proactively reach out for scheduling.

The Query

Copy and paste the following code into your User Query window. This query looks for active patients in the specified age range and checks if they have any completed sealant procedures (using common CDT codes D1351, D1352, D1353, and D1354) in their history.

/* Set age range */
SET @MinAge = 6;
SET @MaxAge = 14;

SELECT 
    p.PatNum, 
    p.LName, 
    p.FName, 
    p.Birthdate, 
    TIMESTAMPDIFF(YEAR, p.Birthdate, CURDATE()) AS Age,
    p.HmPhone, 
    p.WirelessPhone, 
    p.Email
FROM patient p
WHERE p.PatStatus = 0
AND TIMESTAMPDIFF(YEAR, p.Birthdate, CURDATE()) BETWEEN @MinAge AND @MaxAge
AND p.PatNum NOT IN (
    SELECT pl.PatNum 
    FROM procedurelog pl
    INNER JOIN procedurecode pc ON pl.CodeNum = pc.CodeNum
    WHERE pc.ProcCode IN ('D1351', 'D1352', 'D1353', 'D1354')
    AND pl.ProcStatus = 2 /* Completed */
)
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. You can click Export to save this list as a CSV file for your marketing or recall software.

Understanding the Results

How to Customize

You can easily adjust this report to fit your specific needs:

Variations

If you want to narrow this list down to patients who have an upcoming hygiene appointment, you can join the appointment table to the query to see who is already on the books. This allows you to flag these patients for a "sealant discussion" during their next visit rather than just calling them for a new appointment.

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.