Update consolidation skript using distinct