I'm trying to learn more about databases (very little experience only on toy projects) and rn i'm working for a small company tying to convert their Access db (mostly) written by hand into sql.
I decided to start with some easy tables, to figure out the workflow : companies/contacts
i assumed that company_id is used as a fk for contacts but seems like I was wrong and they actually use company_name as a fk.
this seem a bit awkward, like i get the reason why it's this way but there has to be a better aproach.
rn i'm just trying to redesign the db schema into a format that makes sense. i'd assume going with company_id as fk is the best aproach but I have the following problems:
- not sure what tool is going to be used to edit/view the db until i actually create a frontend/automation processes for it
- if it's even possible to display the company_name based on company_id on such a tool