Conversion...
Posted: Tue Aug 28, 2007 11:47 pm
Hello all,
I am attempting to do a conversion for a Dr. but am having trouble creating the mysql insert statement for the patplan table. What I understand is that PatPlanNum is an incremental primary key, PatNum is the foreign key from the patient table and PlanNum is the foreign key from the insplan table. What I have trouble with is populating PlanNum. PlanNum is the same key for however many patients are insured. I just can't wrap my head around creating a mysql insert query using only the insplan, patient and patplan table.
Thanks for the help in advance,
JamesBob
I am attempting to do a conversion for a Dr. but am having trouble creating the mysql insert statement for the patplan table. What I understand is that PatPlanNum is an incremental primary key, PatNum is the foreign key from the patient table and PlanNum is the foreign key from the insplan table. What I have trouble with is populating PlanNum. PlanNum is the same key for however many patients are insured. I just can't wrap my head around creating a mysql insert query using only the insplan, patient and patplan table.
Thanks for the help in advance,
JamesBob