I still don't really understand the concept of relations in databases, but I'm pretty sure it's what I need to do for a project I'm doing with mysql.
Can any of you explain basically how it works? I'm having trouble finding any sort of tutorial/primer about relations on google.
Basically what I want to do is have a bunch of different tables where some of the fields are "linked" because they are actually the same field and should contain the same data. And then I'm hoping that in php, I can write some sort of SQL query that will be able to select all the fields related to a particular row, even if they aren't all in the same table.
Can any of you explain basically how it works? I'm having trouble finding any sort of tutorial/primer about relations on google.
Basically what I want to do is have a bunch of different tables where some of the fields are "linked" because they are actually the same field and should contain the same data. And then I'm hoping that in php, I can write some sort of SQL query that will be able to select all the fields related to a particular row, even if they aren't all in the same table.