querys

For users or potential users.
Post Reply
babysilvertooth
Posts: 129
Joined: Sat Jun 12, 2010 3:18 pm

querys

Post by babysilvertooth » Thu Mar 31, 2011 6:14 am

I am trying to pull a report for icoomplete notes, under reports it shows Daily, but is there a way to pull them going back 6 months, etc.?

User avatar
wjstarck
Posts: 936
Joined: Tue Jul 31, 2007 7:18 am
Location: Keller, TX
Contact:

Re: querys

Post by wjstarck » Thu Mar 31, 2011 4:20 pm

Hello-

Give this a whirl, I think this will do what you want. Just copy and paste, and change the dates to suit your needs.

Code: Select all

SELECT procedurelog.ProcDate,
CONCAT(CONCAT(patient.LName,','),patient.FName) AS Patient,procedurecode.ProcCode,procedurecode.Descript,
procedurelog.ToothNum,procedurelog.Surf
FROM procedurelog,patient,procedurecode,procnote n1
WHERE procedurelog.PatNum = patient.PatNum
AND (procedurelog.ProcDate >= '2011-03-01' 
AND procedurelog.ProcDate <= '2011-03-31')
AND procedurelog.CodeNum = procedurecode.CodeNum
AND procedurelog.ProcStatus = 2
AND procedurelog.ProcNum=n1.ProcNum
AND n1.Note = ''
ORDER BY procedurelog.ProcDate
Cheers,

Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA

User avatar
jordansparks
Site Admin
Posts: 5744
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: querys

Post by jordansparks » Sun Apr 17, 2011 11:38 am

I think it already shows all incomplete reports regardless of how far back they go. The reason it's under daily is so you stay on top of them.
Jordan Sparks, DMD
http://www.opendental.com

Post Reply