We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 2 columns, instead of 1. in line 1.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Count usage of ringmembers (identified by { vin_amount, amount_index }) that were used in rings (same or different) more than twice | |
SELECT | |
vin_amount, | |
amount_index, | |
COUNT(*) AS n_ringmembers | |
FROM tx_input_list | |
GROUP BY vin_amount, amount_index | |
HAVING COUNT(*) > 2 | |
ORDER BY COUNT(*) DESC; |