Question
loop insert versus transaction
Hi,
I wonder if someone has some good ideas. I have a database table that has this key info. (Yes, I know its not normalized, but that's my goal now.)
PhysicianID
PhysicianSpecialty1
PhysicianSpecialty2
I think that my goal is something like this,
PhysicianID
PhysicianSpecialtyID
PhysicianSpecialtyID
PhysicianSpecialtyName
But each physician can have multiple specialties and I need to be able to enter all the data from one form at the same time and maintain referential integrity with the daughter table with all going in as a single transaction. Would a loop be appropriate here? A transaction? All help appreciated.
I wonder if someone has some good ideas. I have a database table that has this key info. (Yes, I know its not normalized, but that's my goal now.)
PhysicianID
PhysicianSpecialty1
PhysicianSpecialty2
I think that my goal is something like this,
PhysicianID
PhysicianSpecialtyID
PhysicianSpecialtyID
PhysicianSpecialtyName
But each physician can have multiple specialties and I need to be able to enter all the data from one form at the same time and maintain referential integrity with the daughter table with all going in as a single transaction. Would a loop be appropriate here? A transaction? All help appreciated.
