I have a table for team partners:
id - Primary Key (auto inc)
first_name - text
last_name - text
team_number - number
I insert two records at the same time, and I want them to have a unique (if possible auto incrementing) team number.
At the moment, I do a count of the current table results, add 1 and insert that as a team number.
If I had 20 people entering data at the same time, I believe there's a risk of two teams getting the same team number.
Are my fears based in reality? If so, how do I mitigate that?