Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
465 views

1 Answer

0 votes
by
The numbers (postid in the database) go up with every post - question, answer or comment - so not every number in sequence refers to a question.
by
okay. got it now; any reason for using same variable for question, answer and comments?
by
Numbers might also be skipped because of deleted questions. The ID is probably auto-incrementing so will just keep going up without filling in the gaps. As your previous question showed, it doesn't matter since there is scope for billions of questions/answers/comments.

Re using the same table: I assume it's because questions and answers (and comments to an extent) share much of the same data structure, e.g. ID, text, votes and so on. So it's simpler to put them in one single table.
by
Thanks for the explanation!
...