I am a newbie to databases. I am using MySQL, and I have a table A using three attributes to form a composite primary key:
A: [key1, key2, key3], dateCreated, createdBy, ...
Now I have another table B, which needs to refer to records from the table above. Now, reusing all the three attributes above again to form a key seems to be a pain. Is it okay to use an additional auto incrementing dummy "id" attribute to table A as a primary key, and use that as a reference in table B? Which is the right thing to do?