The answer, I fear, is too much to fit in a forum reply.
I found the following book very helpful and well written.
Database Design for Mere Mortals: A Hands-On Guide to Relational Database Design (Paperback)
~ Michael J. Hernandez
Steve
Totally agree, studying the concepts of relational database is the place to start.
Here is a basic example of a trivial database: The purchase order.
The purchase order consists of two parts. First, the header which says who the order is for, address, the date, status, etc. The second part is the list of items being ordered, where each "row" in the list has an item description, id number/code, quantity, unit cost, etc.
In a relational database, the data for the header and the data for the items are kept in two separate tables, the jargon is that the header is a master record and list items are details. Master and detail tables/records are linked, via a common "key" or unique identifier. This example is what's known as a 1 to 1:N relationship. It doesn't make sense for there to be a header record without at least one item record. What's an order without something being ordered? So for integrity, there needs to be at least one item record for each order, but there could be dozens of items.
For this example I'll ignore other possible tables in the database such as inventory (the master list of stock items) and customers (the master list of previous customers).
The way this is setup, when a new order is created a unique order number is assigned and stored in the header record master table (along with the other order header information). Then as you start entering the items, records in the items table are created, which include the very same order number in addition to a field which identifies the item (either the item number or a row number). The item records (details) has effectively a two part (field) key (order number + item number) which together makes it unique in the table, and allows you or the engine to find all the items associated with a particular order. Note: There are other ways to structure this, but the effect is the same.
You can tell some database engines that there is a linkage between these two tables, and if you do this then the engine will assist in managing the relational rules you impose. However you don't need to do this in PHPR. In the Tables tab, you connect the tables together by identifying the shared key field, in our case the order number, say which table is the master, and how you want to display the details.
The purpose of reading the book will be to help understand the different types of relationships (how you might use them) and identify the potential issues in operating a relational database, and the implications when rules are not enforced. For instance, what happens to the integrity of your data when the master record is deleted but not the details, or what happens when the order number linking key value is changed in one table but not the other, etc.