querys
-
- Posts: 129
- Joined: Sat Jun 12, 2010 3:18 pm
querys
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.?
Re: querys
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.
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
Bill Starck, DDS
Big Idea Software, LLC
Developer, EASy(Electronic Anesthesia System) for Open Dental
817-807-1709
TX, USA
- jordansparks
- Site Admin
- Posts: 5770
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: querys
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
http://www.opendental.com