Jump to content
  • 0

one to many relatioship not recognized


Umbie

Question

4 answers to this question

Recommended Posts

  • 0

Hi @Umbie!

I'm not sure what you mean by saying "caspio does not recognize it". I tried importing both of your tables as is, without changing any data types and I was able to build the relationship between them.
image.png.7869701a5c4448ee23200e253b33fdd0.png

 

But what I find a little bit strange in your screenshot is that you are trying to relate "Product" field (which is the product name) with "Order Id" field. Looking at your tables I would say that the correct way is to establish the relationship between two ProductID fields.
And, just in case, pay attention to the table at the very end of this article, that says "Compatible Data Types" to make sure in future that the two fields can be connected.

https://howto.caspio.com/tables-and-views/relationships/

 

 

Link to comment
Share on other sites

  • 0

Hello Fae and many thanks for your reply.

You are right I posted the wrong screenshot.

Yes, indeed I do get the same as you vy connecting the two table through ProductID do but if you notice it says RELATIONSHIP TYPE INDETERMINATE.

That should not happen, the two table should have a one to many relationship determined because, as per your link: 

  • An indeterminate relationship occurs when neither of the fields in a relationship is unique.

In fact ProductID in Products is UNIQUE, so why does it display indeterminate?!

 

Thanks!

Umbie

Link to comment
Share on other sites

  • 0

@Umbie
I see what you are saying. Do you mean that ProductID field is set as UNIQUE on the table design tab? It is not enough to have unique values, you need to deliberately set the checkmark like this:

image.png.6f0ccc60f35e1d7ce57cb7537e032ed1.png

I tried it with your table and the relationship type was recognized as One-to-Many.

You may need to delete the existing relationship first before you convert the field to Unique, because otherwise the system won't let you save this change.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...