score:1
Dont know about Dubai, but Qatar ID Number is of 11 digits.
So, no, two work visa numbers for two different persons will not be same. Although same person re-entering Qatar after getting first visa cancelled will get same number as earlier.
Note that this applies to Qatar ID Numbers. The temporary visa you need to enter and get the RP process completed may be totally different.