ah i see, yea i just read a blog post on using composite keys instead of ids. However if you are were to make a foreign key you would have to duplicate all those columns?
I am assuming when you say code that is like the VIN number of a car that uniquely identifies a car?