Is ProcCode in "procedurecode" table same as "CodeNum" in "procedurelog" table?

For complex topics that regular users would not be interested in. For power users and database administrators.
Post Reply
Mikol22
Posts: 3
Joined: Tue Jun 08, 2021 3:47 pm

Is ProcCode in "procedurecode" table same as "CodeNum" in "procedurelog" table?

Post by Mikol22 »

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?
User avatar
jordansparks
Site Admin
Posts: 5776
Joined: Sun Jun 17, 2007 3:59 pm
Location: Salem, Oregon
Contact:

Re: Is ProcCode in "procedurecode" table same as "CodeNum" in "procedurelog" table?

Post by jordansparks »

procedurecode.CodeNum = procedurelog.CodeNum
Jordan Sparks, DMD
http://www.opendental.com
Mikol22
Posts: 3
Joined: Tue Jun 08, 2021 3:47 pm

Re: Is ProcCode in "procedurecode" table same as "CodeNum" in "procedurelog" table?

Post by Mikol22 »

You are right! I cannot believe i didnt notice that before. Thank you
Post Reply