I think if you feed your new structure to some of the proposals it will work...
In reply to Re^5: Get just the unique value by hdb in thread Get just the unique value by Anonymous Monk