I am testing out writing queries.
I know the procedurecode contains all the codes while the procedurelog contains each procedure for a patient (so John with an ID of 555 can have 6 rows, each row containing a different CodeNum)
I wanted to get all patients that have a specific procedurecode. I know the procedurelog stores each and every procedure for a patient but is the "CodeNum" column contains the procedurecode that patient will do?
Is ProcCode in "procedurecode" table same as "CodeNum" in "procedurelog" table?
- jordansparks
- Site Admin
- Posts: 5748
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: Is ProcCode in "procedurecode" table same as "CodeNum" in "procedurelog" table?
procedurecode.CodeNum = procedurelog.CodeNum
Jordan Sparks, DMD
http://www.opendental.com
http://www.opendental.com
Re: Is ProcCode in "procedurecode" table same as "CodeNum" in "procedurelog" table?
You are right! I cannot believe i didnt notice that before. Thank you