Tags in PHPRunner with a master detail relationships |
8/29/2022 10:59:52 AM |
PHPRunner General questions | |
![]() Hello, tblProducts tblColors tblProductColor |
|
![]() |
fhumanes 8/29/2022 |
Hello, Normally, these denormalizations of the relational model are easily resolved with the "find_in_set" function. Look at these examples: https://www.mysqltutorial.org/mysql-find_in_set/ Cheers, |
![]() |
Davor Geci authorDevClub member 8/29/2022 |
Thanks Fernando for your reply and for the suggestion. |
![]() |
fhumanes 8/30/2022 |
Hello, I just gave this respect to another user that I have asked the same question. It is quite easy to solve. I will take an example that I have to explain how it is resolved.
With the ball (1), you see that we have a standardized relationship of many to much, in this case a film can have many issues. With ball (2), we have a relationship of many to many, but we store the ID's of the interpreters in a field of the "film" record, which is what you have. In both cases, information (normalized and grouped) can be available, regardless of how it is stored. It is resolved very well with database views, in this case: (1) Change to Item grouped: CREATE VIEW `v_vide_temas` AS Use of the Group_Concat function (2) Your case, for a standardized model: CREATE VIEW `v_vide_peli_interprete` AS Use of the Find_in_set function Cheers, |
![]() |
Davor Geci authorDevClub member 8/31/2022 |
Thank you Fernando, Davor |