I wrote a custom report a while back that pulled the RiskScore - here's the SQL ;-
C#/VB.NET Code:
SELECT TOP 25 ordernumber
AS 'Order'
,
CONVERT(VARCHAR(8), orderdate, 3)
AS Date,
email,
lastipaddress,
billingzip
AS Billing,
shippingzip
AS Shipping,
ordertotal
AS 'Order Total',
avsresult
AS AVS,
last4,
maxmindfraudscore
AS FraudScore,
Substring(maxminddetails, (
Charindex('<riskScore>', maxminddetails)
+ 11 ), Charindex('<', Substring(maxminddetails,
(
Charindex(
'<riskScore>',
maxminddetails
)
+ 11 ), 6)) - 1) AS RiskScore
FROM orders
WHERE ( ordertotal > 88
AND ( billingzip != shippingzip
OR avsresult = 'I'
OR avsresult = 'N' )
AND maxmindfraudscore > 0 )
OR maxmindfraudscore > 9
ORDER BY ordernumber DESC
This is the bit that gets the risk score :-
C#/VB.NET Code:
Substring(maxminddetails, (
Charindex('<riskScore>', maxminddetails)
+ 11 ), Charindex('<', Substring(maxminddetails,
(
Charindex(
'<riskScore>',
maxminddetails
)
+ 11 ), 6)) - 1) AS RiskScore
TTFN
BFG