If I have four tables, each with four columns, which use the primary key from ‘users’, which is ‘id’ and is of type int, and the relationship between the tables are only ever one to one, is it still appropriate to have the tables separate with ‘id’ as the only foreign key, instead of one table with 16 columns?
Share
I’d ask what the JOIN is buying you in that case. Either one table is all you need or the statement that it’ll always be a one-to-one relationship could change. If it’s the former, I’d denormalize. If it’s the latter, I’d keep the multiple table design.