Hi,
I am making a database with multiple tables that will relate to each other by a clientid. So far I have 2 tables. I set the first table's clientid as a foriegn key to the clientid in the 2nd table. The clientid in the first table is a primary key with unsigned numbers and set to auto_increment. Each entry on that table will be a new client with a unique number. On the 2nd table, there will be multiple entries for the same client id. I'm not really sure how to set that one up so I just put it as the same data type (int) and put "unsigned."
Do I need to set the clientid in the 2nd table as a foreign key to the 1st table too?