-- The repeating refPersonGroupId violate First Normal Form
Ok, I oversimplified what I'm actually dealing with because my ability to draw clear ascii art is limited to two tables.
In reality, refPersonGroupId1 and refPersonGroupId2 don't point to the same table. They point to two different...
PHV and Gomom -
I read PHV's link... are you saying that this won't work? I'm trying to simplify what I'm really doing into something that's easy to post and comment on. In reality there are two fields that are references to the primary key of another table that need to be updated (hopefully...
PHV -
One more quick addition to the last addition. Your query works great. Now, if I need to add on additional groups, like refPersonGroupId1, refPersonGroupId2, refPersonGroupId3... how would I extend your query?
I tried this, but it didn't work:
INSERT INTO tblPerson (PersonFirstName...
Is this doable with one SQL query? There are two tables:
tblPerson
----------------
PersonId
PersonFirstName
PersonLastName
-> refPersonGroupId
|
|
| (linked by)
|
|
| tblPersonGroup
| ----------------
-> PersonGroupId
PersonGroupName
So...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.