lundi 2 mai 2016

Select x random number having sum n in Sql Server

How do i generate x random number to have sum=n example:

N=5000 x=5
1- 1500
2- 500
3- 700
4- 1400
5- 900




Aucun commentaire:

Enregistrer un commentaire