We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51986a2 commit 7637bd0Copy full SHA for 7637bd0
mssql/ddl/func-bfs-weight.sql
@@ -48,7 +48,7 @@ BEGIN
48
UNION ALL
49
50
SELECT n.personId, d.OrderDiscovered,
51
- CAST(cte.Path + ';' + CAST(n.personId as varchar(MAX)) as varchar(MAX)), cte.score + CAST(ROUND(40 - SQRT(d.weight)) AS bigint)
+ CAST(cte.Path + ';' + CAST(n.personId as varchar(MAX)) as varchar(MAX)), cte.score + CAST(ROUND(40 - SQRT(d.weight),0) AS bigint)
52
FROM #Discovered d JOIN BacktraceCTE cte ON d.Predecessor = cte.Id
53
JOIN dbo.Person n ON d.Id = n.personId
54
)
0 commit comments