Trying something for a storedproc

This commit is contained in:
Rick Falkvinge
2015-10-08 02:00:34 +02:00
parent 38f4e47c03
commit 9cc1008f4e
+1 -1
View File
@@ -45,7 +45,7 @@ BEGIN
(
SELECT HotBitcoinAddressId, SUM(AmountSatoshis) AS UnspentAmountSum
FROM HotBitcoinAddressUnspents
WHERE HotBitcoinAddressUnspents.HotBitcoinAddressId=hotBitcoinAddressId
GROUP BY HotBitcoinAddressId
) innerSelection ON HotBitcoinAddresses.HotBitcoinAddressId =
innerSelection.HotBitcoinAddressId
SET HotBitcoinAddresses.BalanceSatoshis = innerSelection.UnspentAmountSum