create table attributes ( id int(), # the ID of data chunk record this attribute applies to attr char(10), # the attribute name value char(10), # the attribute value primary key (id, attr) );