Hi,
I want to know what would be your preferences in this case. I'll have a login and sign up process and want to develop its database tables.
- 1:1 version needs JOIN everytime when loging in, T-SQL when signin up new user.
- Single table version doesn't need two bits above.
What would proper database designer go for?
Thanks
1:1 relationship
users { id (PK), name, surname }
login { id (PK), username, password, salt, usersid (FK) }
single table instead
login { id (PK), name, surname, username, password, salt }
Note: Don't worry about adding new columns to the tables. I'm more interested in your ERD&structure.