Quote:
Originally Posted by xandout
OIs there a way that I can ensure a unique entry in "Clients" and be able to use that info when referencing "Jobs.
|
make sure the clients table has an auto_increment primary key (call it id)
then add a client_id column to the jobs table, and link up each job to its client by placing the client's id value from the clients table into the client_id column of the jobs table for that particular job
for full marks, use the FOREIGN KEY syntax to declare the relationship explicitly
