Depends on the Edition.
In 2E, the average Joe in my campaign would be 0th level. Town guards are probably 1st level fighters led by 3rd level lieutenants and maybe 5th level captains.
In 3.X, I used the demographics in the DMG, 90% or more of the people in the world are commoners, and most...