Currently I've normalized a couple of tables, but I've got some questions. To keep it simple:
I have 2 tables. 1: userAcces 2: userInformation
In userAcces "id" is the primary key, in userInformation "id" is the foreign key. How can I make sure when I insert something into both tables, the id will be/stay the same. So when I insert something they will automatically equal each other. So I can easily query it with a join statement.
EDIT Another question.
When you eventually delete some records for example id 1. How can you make sure all the records with id 1 will be deleted? And if you've deleted it, then the id order will look strange doesn't it?
For example you"le have :
id name
3 james
6 Elona
9 Bryan