You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would one differentiate a 1 to 1 relationship from a 1 to many relationship in SQL? Can you share your table create script for two tables with a 1 to 1 relationship?
well.. most of the times I try to find myself around..maybe I'm missing something.. but if u set the foreign key as unique key you get a 1 to 1 relationship.. am I wrong?
No.. you aren't, it is a great suggestion. I guess I could try to detect the combination of a FK and a unique constraint. I'll turn this into an enhancement.
mevdschee
changed the title
join returns a subobject array even if it has a 1 to 1 relationship
Join returns list (instead of object) on 1-to-1 relationship
Sep 8, 2022
There may be a problem of a table having two 1-on-1 relationships with another table, but that is an edge case and may be solved with some form of aliasing.
join returns a subobject array even if it has a 1 to 1 relationship
not really a problem.. just not to access the object using its index [0]
The text was updated successfully, but these errors were encountered: