@abenari this was pretty slow for me as it created a temp table, any optimization ideas?