I got three tables. user
tag
and user_tag
. The primary of user
is iduser
+client
, the one of tag
is idtag
+client
. Now I want to create foreign keys for the table user_tag
for those two primary keys without having client twice in there.
How can I do that? How is it displayed in the Entry help/check (there is only one origin for the input available, and client
has two origins)?
Here the example:
client|idtag client|iduser
------------- -------------
1 | 1 1 | 3
1 | 2 1 | 4
2 | 1 2 | 3
Possible values for my new table:
client|idtag|iduser
--------------------
1 | 1 | 3
1 | 1 | 4
1 | 2 | 3
1 | 2 | 4
2 | 1 | 3
Now in my checktable I want to have checked my keys are in that table. If I do not check the client, I would have more possibilities I do not want (not consistent):
client|idtag|iduser
--------------------
2 | 1 | 4
2 | 2 | 3
2 | 2 | 4