Skip to content

Commit 46a46f9

Browse files
committed
Pequeno ajuste no random, para gerar o 9 tb
1 parent 36a96dc commit 46a46f9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Misc/vw.GerarCPF.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,15 @@ AS
7676
FROM
7777
(
7878
SELECT
79-
convert(int,1000*RAND(CHECKSUM(NEWID())))%9 as n1
80-
,convert(int,1000*RAND(CHECKSUM(NEWID())))%9 as n2
81-
,convert(int,1000*RAND(CHECKSUM(NEWID())))%9 as n3
82-
,convert(int,1000*RAND(CHECKSUM(NEWID())))%9 as n4
83-
,convert(int,1000*RAND(CHECKSUM(NEWID())))%9 as n5
84-
,convert(int,1000*RAND(CHECKSUM(NEWID())))%9 as n6
85-
,convert(int,1000*RAND(CHECKSUM(NEWID())))%9 as n7
86-
,convert(int,1000*RAND(CHECKSUM(NEWID())))%9 as n8
87-
,convert(int,1000*RAND(CHECKSUM(NEWID())))%9 as n9
79+
convert(int,1000*RAND(CHECKSUM(NEWID())))%10 as n1
80+
,convert(int,1000*RAND(CHECKSUM(NEWID())))%10 as n2
81+
,convert(int,1000*RAND(CHECKSUM(NEWID())))%10 as n3
82+
,convert(int,1000*RAND(CHECKSUM(NEWID())))%10 as n4
83+
,convert(int,1000*RAND(CHECKSUM(NEWID())))%10 as n5
84+
,convert(int,1000*RAND(CHECKSUM(NEWID())))%10 as n6
85+
,convert(int,1000*RAND(CHECKSUM(NEWID())))%10 as n7
86+
,convert(int,1000*RAND(CHECKSUM(NEWID())))%10 as n8
87+
,convert(int,1000*RAND(CHECKSUM(NEWID())))%10 as n9
8888
) R
8989
) C1BASE
9090
) C1

0 commit comments

Comments
 (0)