I should see the story of the product for example the product named "A"
is repaired ten times when the owner was company "X" and now is repaired
one time with the company "Y".
Hi Guys![snip]
I need to do a db where I could store company's details and company's products but what happen when a company for example named "X" become a company named "Y"?
See my 2020-02-25 reply to you in the comp.databases.mysql thread titled "Something like a FK but in the same table"
(https://groups.google.com/d/msg/comp.databases.mysql/3ra_9uarsHU/oOEWBtjpCQAJ)
where I outline how to use a many-to-many table to hold company history.
HTH
On August 5, 2020 10:58, ^Bart wrote:
I need to do a db where I could store company's details and company's[snip]
products but what happen when a company for example named "X" become a
company named "Y"?
See my 2020-02-25 reply to you in the comp.databases.mysql thread titled "Something like a FK but in the same table"
where I outline how to use a many-to-many table to hold company history.
If the user is running MariaDB, there is now an even better way of storing and handling multiple (historical) versions of a record:I didn't know it, I'll check it! :)
https://mariadb.com/kb/en/temporal-data-table
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 293 |
Nodes: | 16 (2 / 14) |
Uptime: | 234:14:43 |
Calls: | 6,624 |
Files: | 12,172 |
Messages: | 5,319,694 |