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.

Find Family Members Not Listed as Patients

SQL Queries3 min read4/9/2026

If you have family members listed in your database who were never formally added as patients—perhaps they were entered as guarantors or emergency contacts—this report helps you clean up your records. Running an open dental family not patients query allows you to identify these individuals so you can decide whether to update their status or remove redundant entries.

The Query

This query identifies individuals who are listed as a Guarantor for at least one patient but are not themselves marked as an active patient (PatStatus 0).

/* Set the status to look for - 0 is Active Patient */
SET @ActiveStatus = 0;

SELECT 
    p.PatNum, 
    p.LName, 
    p.FName, 
    p.HmPhone, 
    p.Email
FROM patient p
WHERE p.PatStatus != @ActiveStatus
AND p.PatNum IN (
    SELECT DISTINCT Guarantor 
    FROM patient 
    WHERE Guarantor != PatNum
);

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

If you want to narrow your search to specific types of non-patients, you can modify the WHERE clause.

Variations

Find Non-Patients with an Email Address

If you are planning a marketing campaign and want to see which non-patient guarantors have valid email addresses, use this variation:

SELECT PatNum, LName, FName, Email
FROM patient
WHERE PatStatus != 0
AND Email != ''
AND PatNum IN (SELECT DISTINCT Guarantor FROM patient WHERE Guarantor != PatNum);

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.