Is it wrong that each attribute of a table is a foreign key in another table pointing to it?

Asked

Viewed 75 times

1

inserir a descrição da imagem aqui I’m making a stock system and modeling, instead of each item having its attributes defined I wanted to make four tables tags (tag_decimal, tag_data, tag_text, tag_boolean) that pointed to the item table. Since I’ve never seen this in my class I was wondering if it’s out of the ordinary, or have any problems.

  • It would be better to show this to us to see the whole context better. Right or wrong always depends on context.

  • Might as well, but think about what the appointments are going to be, which is almost certain to be a full Outer Join

  • An excessive amount of Outer joins weigh the requests? I’ll put the context, thanks for the warning

  • I just saw the image, the way you are doing can cause problems, I thought you are wanting to make an entity item and there was only a single entity of tags that would contemplate(tag_decimal, tag_data, tag_text, tag_boolean), so an item has 1:1 and a tag has 1.1 items

  • I ended up using only text tag same, thanks for the personal help.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.